February 2020
Intermediate to advanced
734 pages
38h 13m
English
The watch utility will execute any command and its arguments until it is canceled with Ctrl + C. Instead of using those grep statements every time we want to see interesting fields in the /proc/meminfo file, we can simply use watch. For example, to observe the state of dirty buffers waiting to be committed to disk, we can use the following command:
watch -n 5 grep -A1 Dirty /proc/meminfo
Read now
Unlock full access