Skip to Main Content

Linux Terminal

locate

The locate command will print the path of the file you are in search for. Before running locate it is recommended you run the command sudo updatedb which updates the database in case the file was recently created. An example is shown below: