How to remove all files in Linux server’s directory except one file

Bash remove files in Linux server’s directory except some files. You need to clean up in a download directory i.e. delete each files from ~/Downloads/ folders not including the below types: .iso – All ISO image (.iso file) .zip – All zip files. (.zip files)


Who Upvoted this Story


Comments