# reset
- Create backup (if sda is your booting disk)
$ dd if=/dev/sda of=bootsector.img bs=512 count=1
- Restore backup
$ dd if=bootsector.img of=/dev/sda
If you have a directory that contains tons of subdirectories and you want to delete just some of them, the slow way to do it would be like this:
$ rm -rf /home/plop/work
$ rm -rf /home/plop/projects
$ rm -rf /home/plop/foo
But that's pretty slow and error-prone - a better way is to perform multiple filename expansion by placing the options inside braces. For example, this would achieve the same as the lines above:
rm -rf /home/plop/{work,projects,foo}