List of some commands I like and you will too !
screen
- Running a script and got disconnected ?
- Running a script in background and forgot to pipe the output ?
These are some and numerous other reasons why you should use screen command rather than doing the above.
screen and hit enter
ctl -a d - to detach from the screen.
screen -ls (to view all disconnected screens like follows)
There are screens on:
6295.ttyp1 (Detached)
22270.ttyp3.server (Detached)
24315.ttyp5.server (Detached)
3 Sockets in /tmp/screens/S-username
screen -r 22270
lets you can get into session 22270
Having fun ?
What happens when i wnat screen's inside screens ?
well. You do the following.
ctl - a - n
gets you in the next screen.
ctl - a - p
gets you in the previous screen.
watch
Great utility ! Ever tried doing iostat -x 3. Well it gives io statictics update every 3 seconds.
Now try this,
watch -n 3 -d iostat
It also refreshes iostat every 3 seconds. But check out the difference.
watch enables the same display over and over again and the deviation portion highlighted.
Probably one of the little great utilites i have every used.
Monday, June 16, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment