How to search a file/folder in filesystem
Hello everybody,
a ***completely*** newbie question.... how do I search where a file/folder named "foo" is located in filesystem? Kisses, Nat |
Install 'locate' or probably called 'slocate', if it isn't allready - probably is. Then do: updatedb, to update its database. Then do: locate foo, and add |less if a lot of output is expected - search through less with the / command.
Kisses to you too Nat.:) |
Locate or Find
su
updatedb exit locate foo or find foo |
there's a couple of things, depending on what programs you have installed (dont know what distro you have)
you can try Code:
slocate <file> Code:
locate <file> Code:
find <top level directory> -name "file" Code:
whereis <file> Code:
man find |
You're all very kind, thank you to you all.
|
All times are GMT -5. The time now is 08:04 PM. |