Category Archives: Uncategorized

Backing up the bootsector

Afraid you might mess up your MBR? Back up the bootsector: dd if=/dev/hda of=bootsector.img bs=512 count=1 If anything goes wrong, you can boot from a LiveCD and restore the bootsector with dd if=bootsector.img of=/dev/hda

Which are your most-used Linux commands?

You can display a top 10 of your most-used Linux commands by pasting this in your console: history | awk ‘{print $2}’ | awk ‘BEGIN {FS=”|”}{print $1}’ | sort | uniq -c | sort -n | tail | sort -nr The output will be something like 76 cd73 sudo45 ls37 whois28 apt-cache24 locate15 htop13 qemu11… Read More »