change ``bash headers to
``sh
This commit is contained in:
@@ -5,26 +5,26 @@ tags: [ "system", "CPU", "memory" ]
|
||||
|
||||
Print the average CPU load over 1 minute, 5 minutes, and 15 minutes:
|
||||
|
||||
```bash
|
||||
```sh
|
||||
watch -d cat /proc/loadavg
|
||||
stress="$(cat /proc/loadavg | awk '{print "Usage:" $2"%"}')"
|
||||
```
|
||||
|
||||
Show memory usage in Gibitytes.
|
||||
|
||||
```bash
|
||||
```sh
|
||||
free -g
|
||||
```
|
||||
|
||||
Show low and high gigibtye usage on a *l*ine, and repeat the measurement every 5 seconds:
|
||||
|
||||
```bash
|
||||
```sh
|
||||
REP=5
|
||||
free --lohi -g -s $REP | lolcat
|
||||
```
|
||||
|
||||
Check the next thing cron will do:
|
||||
|
||||
```bash
|
||||
```sh
|
||||
cronnext /var/spool/cron/$USER -l
|
||||
```
|
||||
|
Reference in New Issue
Block a user