TAR
Archiving
tar -czvf filename.tar.gz /path/to/dir1
Extracting
tar -xzvf filename.tar.gz
Extract to another dir
mkdir new-dir
tar -C new-dir -xzvf filename.tar.gz
Extract one file only
tar -xf example.tar.gz <file-name>
List file contents with depth
Download perl script: treeify and run:
tar -tf <file>.tar.gz | treeify -d 2