Frequent Question: How Do I Find a Specific File in Unix?
Contents How Do I Search for a Specific File in Unix? Syntax -Name File-Name – Search for Given File-Name. You Can Use Pattern Such as *. … -Iname File-Name –...
Contents
How do I search for a specific file in Unix?
Syntax
- -name file-name – Search for given file-name. You can use pattern such as *. …
- -iname file-name – Like -name, but the match is case insensitive. …
- -user userName – The file’s owner is userName.
- -group groupName – The file’s group owner is groupName.
- -type N – Search by file type.
24 дек. 2017 г.
Must Read
How do I search for a specific file in Linux?
Basic Examples
- find . – name thisfile.txt. If you need to know how to find a file in Linux called thisfile. …
- find /home -name *.jpg. Look for all . jpg files in the /home and directories below it.
- find . – type f -empty. Look for an empty file inside the current directory.
- find /home -user randomperson-mtime 6 -iname “.db”
25 дек. 2019 г.