6 ms·
I love watch. watch df -h watch ls -sh watch cat file watch nmcli device wifi list watch -n 10 --color curl -s wttr.in
by pjs_ 8y ago
I love watch.
watch df -h
watch ls -sh
watch cat file
watch nmcli device wifi list
watch -n 10 --color curl -s wttr.in
- gyrgtyn 8y agoalways need to install watch and tree
- ianai 8y agoI think I remember combining watch with tail before...not sure why since -f keeps a stream open.
- dijit 8y agoTail -f works by opening the file and remembering the byte offset, if it’s a log file that gets flushed/wiped then tail -f won’t see anything until the logs fill enough to exceed the previous file contents.
- antocv 8y agoUnless you pass the option --follow=name in which case tail will if necessary reopen the file and follow it even when log-application has closed and moved it elsewhere and opened a new one of the same name.
- stevekemp 8y agoTrue, but the `-F` flag will work in that case.
- dijit 8y agoTIL Works on BSD `tail` too. :)
- kieckerjan 8y agoMy favorite use is: watch ps fx I find it very soothing. :)
- amelius 8y agoWishing we could do this without polling, though ...
- vram22 8y agoYes, watch is a cool command. I had written a Python program somewhat like watch: A Python version of the Linux watch command: https://jugad2.blogspot.com/2018/05/a-python-version-of-linux-watch-command.html https://jugad2.blogspot.com/2018/05/a-python-version-of-linu...