Wednesday, March 20, 2013

Trash the hard disk on Solaris VM

If you want to wipe out the boot sector on a Solaris x86 VM so a reboot takes you straight into a net boot to rebuild the host... (because often VMWare takes so long for the console to come up that you don't have a chance to hit F12 before it boots the grub loader)

# dd if=/dev/zero of=/dev/dsk/c1t0d0 count=1 bs=512

Linux: Which processes are using the most RAM?

An easy clear way to see which processes are gobbling all the memory:

$ ps -eo pid,vsz,args | sort -k2n

I got the idea from:
http://superuser.com/questions/398862/linux-find-out-what-process-is-using-all-the-ram