How do I tar all files and subdirectories?

How do I tar all files and subdirectories?
Answer
How to compress a whole directory (including subdirectories) using TAR in Unix based OS with the CLI
  1. tar -zcvf [result-filename.tar.gz] [path-of-directory-to-compress]
  2. tar -zcvf sandbox_compressed.tar.gz sandbox.
  3. tar -xvzf [your-tar-file.tar.gz]
  4. tar -xvzf sandbox_compressed.tar.gz.
 

Tìm kiếm

Back
Top