How Does Tar Work in Linux?

How Does Tar Work in Linux?
Contents

What does tar do in Linux?

The tar command in Linux is what you’re looking for! The tar command is used to compress a group of files into an archive. The command is also used to extract, maintain, or modify tar archives. Tar archives combine multiple files and/or directories together into a single file.

How do you use tar?

How to use Tar Command in Linux with examples

  1. 1) Extract a tar.gz archive. …
  2. 2) Extract files to a specific directory or path. …
  3. 3) Extract a single file. …
  4. 4) Extract multiple files using wildcards. …
  5. 5) List and search contents of the tar archive. …
  6. 6) Create a tar/tar.gz archive. …
  7. 7) Permission before adding files. …
  8. Add files to existing archives.

22 авг. 2016 г.

Sophia Al-Mansoor
Author

Sophia Al-Mansoor

Sophia analyzes international trade, startup ecosystems, retail transformation, and supply chain logistics for modern digital publications.