Compress a corpus directory into a tar archive
Type here
tar -czvf corpus.tar.gz corpora/
Extract a tar archive
Type here
tar -xzvf archive.tar.gz
Extract to a specific directory
Type here
tar -xzvf archive.tar.gz -C /destination/
Compress a file with gzip
Type here
gzip corpus.txt
Decompress a gzip file
Type here
gunzip corpus.txt.gz
Read a gzip file without extracting it
Type here
zcat corpus.txt.gz | head -n 20
Zip a file or directory
Type here
zip -r archive.zip foldername
Unzip an archive
Type here
unzip archive.zip