change formatting
input examples are now given as ```bash input $ARG1 ``` While outputs use md's '> ' sign as a quote.
This commit is contained in:
@@ -6,7 +6,9 @@ tags: [ "Documentation", "Basics" ]
|
||||
|
||||
`type` shows what kind of thing you're running, be it an alias, function, or binary program.
|
||||
|
||||
> type cmus
|
||||
```bash
|
||||
type cmus
|
||||
```
|
||||
|
||||
# Whereis the Program
|
||||
|
||||
@@ -16,18 +18,24 @@ Ask where the `angband` program is, along with all its configuration files:
|
||||
|
||||
Also `which` shows where a binary file (the program) is,
|
||||
|
||||
> which cmus
|
||||
```bash
|
||||
which 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:
|
||||
|
||||
> sudo updatedb
|
||||
```bash
|
||||
sudo updatedb
|
||||
```
|
||||
|
||||
Then to find a file called 'my-cats.jpg', run:
|
||||
|
||||
> locate cats
|
||||
```bash
|
||||
locate cats
|
||||
```
|
||||
|
||||
For best results, run `updatedb` regularly, perhaps in crontab.
|
||||
|
||||
|
Reference in New Issue
Block a user