Third, Linux common commands 04
Compression: gzip:
1. Only files can be compressed and the directory cannot be compressed
2. Do not keep source files
Decompression: Gunzip gzip-d
----------------------------------------------------------------------
Command name: Tar
Syntax: tar options [cvf][directory]
-C generate. tar package file
-V Show More information
-f Specifies the file name after compression
-Z Package simultaneous compression
Function Description: Package directory
Command path:/bin/tar
Execute Permissions: All Users
-----------------------------------------------------------------------
Command name: Tar
Syntax: tar options [cvf][directory]
-X unpack the. tar file
-V Show More information
-F Specify Unzip file
-Z Decompression
Function Description: Unzip
Command path:/bin/tar
Execute Permissions: All Users
------------------------------------------------------------------------------
Command name: BUNZIP2
Syntax: BUNZIP2 option [-k][compressed file]
-K preserves source files after decompression
Function Description: Unzip
Command path:/USR/BIN/BUNZIP2
Execute Permissions: All Users
-------------------------------------------------------------------------------
Command name: Write
Grammar:
Function Description:
Command path:
Execute permissions:
File format after compression:
---------------------------------------------------------------------------------
Linux Learning 2