Useful Linux commands

Useful Linux commands:

Linux command for seeing harddrive I/O in real time:
dstat -tdD total,sda,sdb,sdc,md1 60

SSH to a server and forward back X11 commands:
ssh -X -Y *hostname*

Stop and start Gnome as needed:
service gdm stop
service gdm start

Disable Gnome from auto-start:
systemctl set-default multi-user.target
systemctl isolate multi-user.target

To re-enable:
systemctl isolate graphical.target
systemctl set-default graphical.target #it’ll setup the gdm boot startup
startx

Show size breakdown for individual directories:
du –summarize –human-readable *

This entry was posted in Technology. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

+ 34 = 44