This commit is contained in:
Malin Freeborn
2020-01-05 13:33:53 +01:00
parent a7bd1c2233
commit 1e89f9776d
12 changed files with 48 additions and 96 deletions

View File

@@ -1,3 +1,17 @@
# Whereis the Program
Ask where the `angband` program is, along with all its configuration files:
`whereis angband`
Also `which` shows where a binary file (the program) is,
> which cmus
`type` shows what kind of thing you're running, be it an alias, or binary program.
> type cmus
# Quick Search for Files
You'll need to set up `locate` for this by installing `mlocate`. `mlocate` needs a list of all files on the machine, so run:
@@ -8,21 +22,3 @@ Then to find a file called 'my-cats.jpg', run:
> locate cats
# Whereis
`whereis angband`
... shows where the angband program is, along with configuration files, and binaries.
Also `which` shows where a binary file (the program) is,
> which cmus
That's a lot of files for `cmus`, but you can find out exactly *which* is the program with:
> which cmus
`type` shows aliases:
> type cmus