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
you need to use regular expression for this. Write a regular expression which selects all other files except the one you need.