Re:Watch – A Useful Linux Command You May Have Never Heard Of
by jpablo on Tuesday October 26, 2010 @11:16AM
(#1834513)
while 1; do ls; sleep 5; done
[ Parent
| on HN ]
Re:Watch – A Useful Linux Command You May Have Never Heard Of
by drats on Tuesday October 26, 2010 @11:30AM
(#1834580)
Watch has a nice difference flag, so that whatever is different from the last iteration is highlighted. As in:
watch -d sudo netstat -tnp
Re:Watch – A Useful Linux Command You May Have Never Heard Of
by jcsalterego on Tuesday October 26, 2010 @11:19AM
(#1834531)
Closer to watch -
while 1; do datetime; ls; sleep 2; done
Re:Watch – A Useful Linux Command You May Have Never Heard Of
by fragmede on Tuesday October 26, 2010 @06:20PM
(#1836377)
I used to do:
while true; do date; ls; sleep 2; clear; done
but got tired of it and searched apt for watch. apt-get install procps
Re:Watch – A Useful Linux Command You May Have Never Heard Of
by fragmede on Tuesday October 26, 2010 @06:20PM
(#1836379)
I used to do:
while true; do date; ls; sleep 2; clear; done
but got tired of that and installed procps via apt.
Re:Watch – A Useful Linux Command You May Have Never Heard Of
by tedunangst on Tuesday October 26, 2010 @04:53PM
(#1836042)
1: command not found