Have you ever wanted to clear a entire directory EXECPT one file or folder?
Here is how you can do it with just one line, cd in to the directory you want to effect then,:
That's it! If you need to run the command with sudo you would just run it as: