Delete all files in a folder that don\’t match a certain file extension

$ rm !(*.foo|*.bar|*.baz) Deletes all files in a folder that are NOT *.foo, *.bar or *.baz files. Edit the pattern…

Continue Reading →

Lock the hardware eject button of the cdrom

$ eject -i 1 This command will lock the hardware eject button of your cdrom drive. Some uses are: 1:…

Continue Reading →