PDA

View Full Version : [ubuntu] [SOLVED] Search Filesystem in Terminal



anothrguitarist
May 19th, 2008, 04:27 AM
Is there a way to search for a file using terminal?

wolfen69
May 19th, 2008, 04:28 AM
locate filename

Monicker
May 19th, 2008, 04:29 AM
locate filename

If the file was recently added, you may need to do this first.


sudo updatedb



You can also do



find /dir -name filename


Which will search the dir and all subdirectories. You can start at the root if you want.


find / -name filename

anothrguitarist
May 19th, 2008, 04:30 AM
Thanks!