File CompressionLesson 39Free preview
Bash TAR Archive
This lesson is part of Bash · All levels
Summary
The tar command creates and extracts archives, often combined with gzip to reduce the size. On the tar option, c to create, x to extract, z to gzip, v to verbose, and f to specify the file name. The order of the options must be correct, especially f followed by the file name.
Key points
- Tar -czvf arsip.tar.gz folder makes the archives compressed
- Tar -xzvf arsip.tar.gz extract the archives
- F should be placed at the very end because it needs a file name
- t displays the contents of the archive without extracting
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.