Linux

Archive for March, 2009

Mount ISO images in Linux using the command line

This is a widespread tip but it was missing from Tips4Linux.comIf you want to mount an ISO image using the Terminal you can use sudo mount -o loop image_file.iso /path/to/mount/folder [...]


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/[...]


Convert text between different encodings

Want to convert a subtitle file to a different encoding? Use iconv -f WINDOWS-1253 -t ISO-8859-7 subtitle_file.srt [...]


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/[...]