Learning Linux | Linux from the command line -- Watching commands with the watch command
Did you ever type the same command over and over again just to monitor some ongoing process? Well you can automate that with the watch command.
Here's one I've used when downloading to a nearly full drive.
watch 'df |grep -i /storage'
Or, suppose you have a file being downloaded or created in the background by another process and you want to see show it's coming along and how much has been transferred.
watch 'ls -la ~/Downloads/somefile.tar.gz'
https://www.howtoforge.com/linux-watch-command/
No comments:
Post a Comment