Best Answer: How Do You Use Find Command to Search a File in Linux?
Contents How Do I Find a File Using Find Command? the Following Are Examples of How to Use the Find Command: to List All Files in the File System with the...
Contents
How do I find a file using Find command?
The following are examples of how to use the find command:
- To list all files in the file system with the name .profile, type the following: find / -name .profile. …
- To list files having a specific permission code of 0600 in the current directory tree, type the following: find . –
How do I search for a file in find?
You can use the find command to search for a file or directory on your file system.
…
Basic Examples.
| Command | Description |
|---|---|
| find /home -name *.jpg | Find all .jpg files in the /home and sub-directories. |
| find . -type f -empty | Find an empty file within the current directory. |