I recently learned about the 'screen' command on Linux from one of my friends (and now I am hooked). Now I have learned to use another Linux command 'watch' to constantly run a command and watch its output. I was running into an issue when I ran a test session I would keep getting an error about disk space being filled up. So I thought to monitor disk usage as I ran my stuff.
First, I setup two screens on my remote terminal (putty in my case) and ran
screen
ctrl+A S to create a split screen
ctrl+A tab to move to the second view
ctrl+A c to create a new window
now that i have two screens
On screen 1, run 'watch -n 2 df /tmp' to run the df command every two seconds against /tmp, and now i have a view that updates every 2 seconds in my screen1
On screen2 (switch using Ctrl+A tab), i run my command
There you go, I have not yet found my source of trouble, but the technique still proved its worth since I could see the disk space update as I ran my command.
Now off to finding out what is filling up my disk like that...
I can see so many uses of this nifty tool, amazing...
First, I setup two screens on my remote terminal (putty in my case) and ran
screen
ctrl+A S to create a split screen
ctrl+A tab to move to the second view
ctrl+A c to create a new window
now that i have two screens
On screen 1, run 'watch -n 2 df /tmp' to run the df command every two seconds against /tmp, and now i have a view that updates every 2 seconds in my screen1
On screen2 (switch using Ctrl+A tab), i run my command
There you go, I have not yet found my source of trouble, but the technique still proved its worth since I could see the disk space update as I ran my command.
Now off to finding out what is filling up my disk like that...
I can see so many uses of this nifty tool, amazing...
Comments
Post a Comment