Add ripgrep and glances

This commit is contained in:
James
2020-09-30 13:47:10 -04:00
committed by GitHub
parent a1b07e2b47
commit de9e922db3

View File

@@ -339,8 +339,14 @@ $ cat apps/settings.py | less
$ grep -i "Query" file.txt $ grep -i "Query" file.txt
``` ```
Search all files in current working directory, quickly: (entire disk in less than 15 minutes)`brew install ripgrep`
![grep](./grep.jpg) ![grep](./grep.jpg)
```shell
$ ripgrep -i "Query"
```
## view an image ## view an image
**STOP USING PREVIEW** :-1: **STOP USING PREVIEW** :-1:
@@ -366,6 +372,19 @@ $ df -h
$ top $ top
``` ```
To install:
```shellt
$ brew install python3
$ pip3 install glances
```
```shell
$ glances
```
`glances` will tell you when your computer is under load, and whether it's due to memory or CPU.
## Quick tips ## Quick tips
![CLI tips](./cli_tips.jpg) ![CLI tips](./cli_tips.jpg)