Find a file by name in UNIX/Solaris/Linux

Using the find command, locate a file by name


To find a file such as filename.txt anywhere on the system:
find / -name filename.txt -print
Recent operating system versions do not require the print option because this is the default. To limit the search to a specific directory such as /usr:
find /usr -name filename.txt -print

0 comments:

Post a Comment