for executables, use which <name>
for everything else, use mlocate
sudo updatedb
locate <name>
I don't see how that's hard at all.
for everything else, use mlocate
sudo updatedb
locate <name>
I don't see how that's hard at all.
Again, this about the only thing that systemd, fdo, etc. and I agree on.
thats taking a very "desktop" view on things.
Many more systems run as headless installs in some rack somewhere.
or the even easier to remember 'whereis <name>'
updatedb is usually run daily by cron(8) to update the default database.
Also:
To create a private mlocate database as an user other than root, run
updatedb -l 0 -o db_file -U source_directory
Note that all users that can read db_file can get the complete list of files in the subtree of source_directory. find /. | grep [string]
which will look everywhere for [string]