unix commands – extract .gz files

Dang, I swear I look for these commands way too often. So here it is once and for all:

Extract a .gz file:
gzip -d file.gz

Extract a tar.gz file:
tar xvzf file.tar.gz

Long live the internet!