Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Linux by (9.5k points)
edited by

Can anyone tell me how to create a larger gzip file for all files in a directory,  also I should be able to output the compressed file name and overwrite my old compressed file? 

1 Answer

0 votes
by (19.7k points)
edited by

Use the code below: 

tar -zcvf compressFileName.tar.gz folderToCompress

This will transfer all the files in folderToCompress to compressFileName. 

Interested in Linux? Check out this Linux Certification by Intellipaat. 

Browse Categories

...