watch -n 1 "ls -ltr /tmp/f*" # If you want to monitor some command execution in time like "tail -f" for files
If you want to monitor some command execution in time like "tail -f" for files, probably your linux box have nice solution for you:
[root@svn ~]# fg 1
watch -n 1 "ls -ltr /tmp/f*"
[1]+ Stopped watch -n 1 "ls -ltr /tmp/f*"
[root@svn ~]# fg 1
watch -n 1 "ls -ltr /tmp/f*"
[1]+ Stopped watch -n 1 "ls -ltr /tmp/f*"
$ watch df -h
Every 2.0s: df -h Thu Oct 13 07:34:56 2016
Comments
Post a Comment