How to search or locate a file in Ubuntu Linux
Submitted by Koder on Tue, 01/27/2009 - 11:46
To search or locate a file in Ubuntu you can use the locate command. The command relies on a database which the operating system keeps, you can force the database to update using the command "sudo updatedb" (without the quotes).
An example of the locate command is:
"locate -i filenamehere.txt" (without quotes)
Note the -i switch is used to ignore the case
- Add new comment
- 1402 reads
-


Recent comments
1 day 1 hour ago
3 days 24 min ago
3 days 4 hours ago
4 days 22 hours ago
4 days 23 hours ago
1 week 6 days ago
4 weeks 1 day ago
4 weeks 2 days ago
4 weeks 3 days ago
5 weeks 6 days ago