Linux Commands - Find files using the locate command
by
Jeremy Canfield |
Updated: December 26 2022
| Linux Commands articles
There are a few commands that can be used to find files on a Linux system.
- find command
- locate command (this article)
- whereis command
- which command
The locate command can be used to return the absolute path to a file. For example, here is how you could return the full path to the passwd file.
~]$ locate passwd
/etc/passwd
Did you find this article helpful?
If so, consider buying me a coffee over at