Bash: extract a .tar.gz file into a new directory

This will extract the files within the archive files.tar.gz into a new directory named files:

tar -xzf files.tar.gz files