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

Shared by
Published
Genre
Hosting Company

External source

allindiahosting.com External website

You are viewing the Vahuk Story page. The link above opens the shared source website.

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)

Community reactions

Karma 21

0 reactions

Start the discussion

Discussion

0 comments

No comments yet. Be the first to join the discussion.

Leave a Reply

Your email will not be published.