February 2017
Intermediate to advanced
536 pages
28h 47m
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