---
title: "Discussion on \"Useful commands for file search\" | Hashnode"
description: "Discussion on \"Useful commands for file search\". Search file name\nfind . -iname “[pattern | text]“\nSearch file content\ngrep -r “[text]”\ngrep -r --exclude-dir=\"node_modules\" \"hello\" ."
url: "https://hashnode.com/posts/useful-commands-for-file-search/69621ee4a109c7eccce50405"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Useful commands for file search](https://ductrinh.dev/useful-commands-for-file-search?utm_source=hashnode&utm_medium=feed)

Search file name find . -iname “\[pattern | text\]“ Search file content grep -r “\[text\]” grep -r --exclude-dir="node\_modules" "hello" .

Jan 10 · 1 min read · ductrinh.dev  
Updated Jan 14  
Read the article

## Written by

[D](https://hashnode.com/@dmtri)

@dmtri

  
[View profile](https://hashnode.com/@dmtri)

D personal tech nuggets

What I cannot create, I only partially understand

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
