Extract and delete all .gz in a directory- Linux

Solution 1:

This should do it:

gunzip *.gz

Solution 2:

@techedemic is correct but is missing '.' to mention the current directory, and this command go throught all subdirectories.

find . -name '*.gz' -exec gunzip '{}' \;