Home > Uncategorized > Unzip all zip files into current directory on linux using find

Unzip all zip files into current directory on linux using find

I needed a quick and dirty command to unzip all the .zip files in the current working directory on my redhat box and this was it!

find *.zip -exec unzip {} \;

Enjoy 😀

EDIT: Same but for rar files, auto renames the files if they exist and uses rar name as the directory:

find *.rar -exec unrar e -ad -or {} \;

Categories: Uncategorized Tags:
  1. No comments yet.
  1. No trackbacks yet.

Leave a comment