When using sudo rm -r, how can I delete all files, with the exception of the following:
sudo rm -r
textfile.txt backup.tar.gz script.php database.sql info.
I belive you can use
rm -v !(filename)
Except for the filename all the other files will e deleted in the directory and make sure you are using it in