Wednesday, August 1, 2012

Find files and folders within Linux via terminal session

Several options are available within Linux to find files or folders.  The locate command is different than the find command in that it uses a previously built database.  The database is updated periodically via a cron job, but it can be updated manually by the sudo updatedb command.



The –b option allows search criteria to be specified.


The which command returns the absolute path of the executable that is called when a command is issued.  The default only displays the first matching executable; the –a option all matching entries.


The whereis command returns where the binary, source, and man page files for a command are located.


No comments:

Post a Comment