How do I compress a directory in Unix?

Huyền Thu

New member
How do I compress a directory in Unix?
Answer
How to compress a whole directory (including subdirectories) using TAR in Unix based OS with the CLI
  1. -z : Compress the desired file/directory using gzip.
  2. -c : Stand for create file (output tar. gz file)
  3. -v : To display the progress while creating the file.
  4. -f : Finally the path of the desire file/directory to compress.
 

Tìm kiếm

Back
Top