If we want to delete all files and directories we use, rm -rf *.
rm -rf *
But what if i want all files and directories be deleted at a shot, except one particular fi
At least in zsh
rm -rf ^filename
could be an option, if you only want to preserve one single file.