Tar: Difference between revisions

From MK Wiki EN
Jump to navigation Jump to search
(Explanation of tar and usages in this wiki)
 
(+Extract specific directory of compressed archive)
 
Line 8: Line 8:
* [[MediaWiki]] - Extracting files from a downloaded compressed tar file
* [[MediaWiki]] - Extracting files from a downloaded compressed tar file
* [[LXC]] - Special handling of containers
* [[LXC]] - Special handling of containers
== Extract specific directory of compressed archive ==
tar -xf ''file.tgz'' -C ''destination/'' ''path/to/extract''


[[Category:Linux]]
[[Category:Linux]]

Latest revision as of 20:39, 30 December 2022

tar can be used for creating an archive of files.

man page of tar

Examples of usage:

Extract specific directory of compressed archive

tar -xf file.tgz -C destination/ path/to/extract