tar xvzf file.tar.gz
x: This option tells tar to extract the files.
x告诉tar指令去提取文件
v: The “v” stands for “verbose.” This option will list all of the files one by one in the archive.
v指令: v代表冗长的,这个指令会一一列出所有的档案文件
z: The z option is very important and tells the tar command to uncompress the file (gzip).
z指令:z非常重要,它能够告诉tar指令去解压文件
f: This options tells tar that you are going to give it a file name to work with.
f指令:这个指令告诉tar指令你将要去给正在操作的文件一个名字
xvzf 解压
how to compress a whole directory in linux
tar -zcvf filename.tar.gz directory-name
zcvf
-z : Compress archive using gzip program in Linux or Unix
*
压缩档案文件
*
-c : Create archive on Linux
*
在linux下创建档案文件
*
*
-v : Verbose i.e display progress while creating archive
v指令: v代表冗长的,这个指令会一一列出所有的档案文件
*
f means the following argument is a f̱ilename.
f指令:这个指令告诉tar指令你将要去给正在操作的文件一个名字 |
|