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.
https://www.networkworld.com/article/3657592/using-whereis-whatis-and-which-to-find-out-about-commands-on-linux.html
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.