tar command
1. Role: tar command is packing and compression.
2. Meaning: Packaging: refers to a lot of files or directories into a general file;
Compression: sucked a large file into a smaller file by a number of compression algorithms.
3. Format: tar [command] [parameter] file or directory
packaged
tar -zcvf test.tar.gz test the test file in the current directory for the clip package test.tar.gz
extracting
tar -zxvf test.tar.gz the test .tar.gz extract to the current directory to the specified directory if you want to extract, such as decompression to the / usr, can be used: tar -zxvf test.tar.gz -C / usr; C must be capitalized where
this is two steps, is separated the
4 main parameters: when using this command, a command must be selected (only one option, such as the -X-), accessibility parameters, may select (-f mandatory)
5. parameter Description
-z, --gzip , --gunzip, --ungzip filter through gzip archive
-x, --extract, --get solution from the archive the file
-c, --create create a new archive
-v, --verbose detailed list processing file
-f, --file = aRCHIVE use archive file or device aRCHIVE
--force-local archive copy exists even though it is still considered a local archive
Practical operation of verification:
Linux ---> Windows
1. Packaging
2. Download to a local
3. Local decompression
//=======================================================================
Linux ---> Windows
1. Upload to Linux
2. Extract
3. Review