initial commit
This commit is contained in:
20
fundamentals/locating.md
Normal file
20
fundamentals/locating.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# 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`
|
||||
|
Reference in New Issue
Block a user