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) Extract a tar.gz archive. …
- 2) Extract files to a specific directory or path. …
- 3) Extract a single file. …
- 4) Extract multiple files using wildcards. …
- 5) List and search contents of the tar archive. …
- 6) Create a tar/tar.gz archive. …
- 7) Permission before adding files. …
- Add files to existing archives.
22 авг. 2016 г.