21 lines
389 B
Markdown
21 lines
389 B
Markdown
# Quick Search for Files
|
|
|
|
`locate file*`
|
|
|
|
Locate is fast because it only accesses a database of files which it regularly updates. You can update this with:
|
|
|
|
`sudo updatedb`
|
|
|
|
# Whereis
|
|
|
|
`whereis angband`
|
|
|
|
... shows where the angband program is, along with configuration files, and binaries.
|
|
|
|
Also `which` shows where a binary file is, and `type` shows aliases.
|
|
|
|
`which cmus`
|
|
|
|
`type cmus`
|
|
|