Q: How do I decompress a .zip or .tar.gz file?

A: You can decompress files with the extension .zip using the unzip command. Simply type:

unzip filename.zip

You can decompress files with the extension .tar.gz using the gunzip and tar commands as follows:

gunzip filename.tar.gz

tar xvf filename.tar