Answers for "compress folder tar.gz ubuntu"

2

compress folder in tar.gz unix

#Compress a folder in tar.gz format
tar -zcvf final_archive.tar.gz folder_to_compress/

#Multicore compression using pigz (can be installed with: conda install -c anaconda pigz)
tar cf - ./folder_to_compress/ | pigz -9 -p NPROC > final_archive.tar.gz
Posted by: Guest on March-30-2021
0

extract tar.gz Ubuntu terminal

cd ~/Downloads/archive.tar.gz #first navigate to file location
tar -xzvf archive.tar.gz -C /path/to/new/directory/ 
#-C flag will change the extraction to a new directory.
#remove -C if you want to extract it to current location.
Posted by: Guest on June-14-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language