Blogger Information
Blog 15
fans 0
comment 0
visits 10477
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
Linux-04压缩文件操作
移动用户-7131521
Original
476 people have browsed it

1.压缩文件操作

1.1打包和压缩文件

其中在windows环境中的压缩包文件的扩展名为.zip或者.rar,如果在linux系统环境中通常扩展名为tar

  1. 1tar -zcvf aaa.tar aaa.txt //tar 调用 -zcvf命令 压缩当前路径下aaa.txt文件,名字命名为xxx.tar格式
  2. 2tar -zcvf aaa.tar * //当前路径下的文件全部压缩成aaa.tar压缩包
  3. 3】-zcvf // z代表调用gzip命令进行压缩,c代表打包文件,v代表显示过程,f代表指定文件名 ,x代表解压文件
1.2解压文件

命令格式如下:

  1. 1tar -zxvf test.tar //解压test.tar压缩包到当前路径
  2. 2tar -zxvf test.tar -C /desktop //通过-C来指定解压的子路径下
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post