lk/fundamentals/locating.md

21 lines
389 B
Markdown
Raw Normal View History

2020-01-02 00:04:35 +00:00
# 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`