Skip to content

keep an eye on that


You often want to keep an eye on something on a box like the size of a file, who is on the box or a process is up or down.  You could type the command over and over again, you could do the up key and return if you use bash as your shell or you could run the following

while :; do


 <insert command(s) here>

 sleep <insert amount of time between iterations in seconds here>


I hope this helps


From → Uncategorized

  1. I use the command ‘watch’.

    watch -n

  2. Thanks Eric!

    I’m starting to work on more linux machines so this will be prove useful although at the moment most of the machines I work on are solaris and watch doesn’t appear as default command there 😦 For any that’ll allow me I will put in a command called watch in the default path. Thanks again.

Trackbacks & Pingbacks

  1. rotateSnoop « bonstechblog

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: