Repeat a Linux Command Every X Seconds Forever- using watch Rumi, July 29, 2019 Use watch Command Watch is a Linux command that allows you to execute a command or program periodically and also shows you output on the screen. This means that you will be able to see the program output in time. By default watch re-runs the command/program every 2 seconds. The… Continue Reading
Learning watch command with examples! Rumi, January 18, 2017 watch date watch -d date watch -n 10 df -h watch -t date watch echo “‘”‘$$'”‘” watch echo $$ watch -n 0.5 echo $$ watch -n 1 ‘ps -e -o pid,uname,cmd,pmem,pcpu –sort=-pmem,-pcpu | head -15’ watch -d -n 1 ifconfig watch -n 1 tail /var/log/messages watch -d=cumulative date watch “du… Continue Reading