Organizational Research By

Surprising Reserch Topic

Experts Most Trusted Topic

Question:find-unix:how to use find command on unix?


Locating a file by name inside the current directory and all subdirectories

find . -type f -name 'nameofthefile.txt'

You can also use the * metacharacter if you want to find every file ending in .txt

find . -type f -name '*.txt'

Find can also search for directory names using the ‘d’ flag

find /usr -type d -name 'bin'

asked Sep 13, 2013 in Java Interview Questions by anonymous
edited Sep 12, 2013
0 votes

Related Hot Questions

Walkin Jobs Opening

Government Jobs Opening