Easy search and archiving of files in Linux

Say you have a folder full of downloads and you don’t need the files you got prior to the day before yesterday. This command will search for and archive all files bigger than 100Kb and older than 48hrs: find /path/to/directory/ -type f -mtime -2 -size +100k | xargs tar -zcvf archive.tgz

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