tar

GNU 'tar' saves many files together into a single tape or disk archive, and can restore individual files from the archive.

用來打包和解包


Usage: 打包

$ tar [OPTION...] [FILE]...

Example

# Create archive.tar from files foo and bar.

$ tar -cf MyProject.tar ~/Project

Usage: 解包

$ tar [OPTION...] [FILE]...

Example

# List all files in archive.tar verbosely.

$ tar -tvf MyProject.tar

# Extract all files from archive.tar.

$ tar -xf MyProject.tar