Unzip All Files With Same Directory Name $ for f in *.zip; do unzip "$f" -d "${f%.zip}"; done source: https://unix.stackexchange.com/a/631313