How do I re-scan my drive so my 'search utilities' are able to find a new file on my system?
I'm having a tough time googling HOW TOs for launching an index/scan command to any of this applications. I mostly use: 'find' and 'locate', but thought it would be a good idea to know about other search apps and their index/scan commands (Sorry, don't know what to best call it: index or scan for scanning new files on the system).
- My problem: I install or download a new file to the system but don't know where.
- My Need: To scan my drive (preferably by folder, but i'm willing to live with a full scan)
- My OS: Linux Debian (Lenny)
Thank you!
Best Answer
Find does not need an index, and traverses the disk every time you run it. Example
locate and variants need index files, but they work -really- faster. 'locate' is from GNU findutils. 'slocate' was recommended up to etch; it was a more 'secure' version of locate, users will not see files that they do not have acess to. 'mlocate' is recommended in lenny and newer, mlocate has a more efficient indexing mechanism.
which
searches your $PATH for the binary name you give. No need for an index.If you want to see a package's installed files, use this
To see which package installed a specific file