watch du -sh and highlight changes
-
I was hoping to have a solution that could do this via putty. But no?
Oh well.
-
@dustinb3403 said in watch du -sh and highlight changes:
I was hoping to have a solution that could do this via putty. But no?
Oh well.
Open multiple PuTTYs and do a watch command. That's about your only option (or tmux) if you don't want to script it.
-
@dustinb3403 said in watch du -sh and highlight changes:
I was hoping to have a solution that could do this via putty. But no?
Oh well.
Well sure, a script that you write and run via PuTTY. Something has to have the business logic and storage history that you want to compare against. That's the script. You can obviously use PuTTY, though.
-
@stacksofplates I had multiple putty sessions open, but it wasn't as clean as I was hoping.
Thanks for the tip though.
-
@dustinb3403 said in watch du -sh and highlight changes:
@stacksofplates I had multiple putty sessions open, but it wasn't as clean as I was hoping.
Thanks for the tip though.
Tmux would probably be cleaner, but that's all up to whether you want to set up a session for this process (assuming you're only doing it once?).
-
@dustinb3403 said in watch du -sh and highlight changes:
@stacksofplates I had multiple putty sessions open, but it wasn't as clean as I was hoping.
Thanks for the tip though.
What makes having multiple sessions easier?
-
@scottalanmiller said in watch du -sh and highlight changes:
@dustinb3403 said in watch du -sh and highlight changes:
@stacksofplates I had multiple putty sessions open, but it wasn't as clean as I was hoping.
Thanks for the tip though.
What makes having multiple sessions easier?
One session I simply listed the folder sizes, and it remained static. On the other session I had it watching those folders for changes.
It worked, but wasn't as clean as I had hoped.
-
@dustinb3403 said in watch du -sh and highlight changes:
@scottalanmiller said in watch du -sh and highlight changes:
@dustinb3403 said in watch du -sh and highlight changes:
@stacksofplates I had multiple putty sessions open, but it wasn't as clean as I was hoping.
Thanks for the tip though.
What makes having multiple sessions easier?
One session I simply listed the folder sizes, and it remained static. On the other session I had it watching those folders for changes.
It worked, but wasn't as clean as I had hoped.
OH! I see.
-
You could easily output the old info to a file or print it out via an echo. Then show the live data, all in one command.
-
Like this...
watch "echo Old Size Was: 38M; du -shx /tmp"