File Archiving and Compression
Archiving a file
tar -cvf filename.tar foldername/location
-c
create-v
verbos output-f
set a filename/filelocation
Compressing a file
gzip filename.tar
File will be compressed.ls
filename.tar.gz
Extracting a compressed file
tar -xzvf filename.tar.gz
File is unzipped and then extracted.
Last updated