How to extract all *.zip or *.tar.bz2 files in a folder in Linux

You can use find command:
For zip file,
find . -name "*.zip" -exec unzip {} \;
For tar.bz2 file,
find . -name "*.tar.bz2" -exec tar -xjvf {} \;

Comments