Organizational Research By

Surprising Reserch 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

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.