博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Linux下*.tar.gz文件解压缩命令(以及后台执行压缩命令,包括zip格式文件)
阅读量:4166 次
发布时间:2019-05-26

本文共 298 字,大约阅读时间需要 1 分钟。

1.压缩命令:

  命令格式:tar  -zcvf   压缩文件名.tar.gz   被压缩文件名

      可先切换到当前目录下。压缩文件名和被压缩文件名都可加入路径。

       如果需要在后台执行,不占用进程的时间,需要在命令格式后面加  >/media/ram/c.txt&

      完整命令如下:tar  -zcvf   压缩文件名.tar.gz   被压缩文件名  >/media/ram/c.txt&

2.解压缩命令:

  命令格式:tar  -zxvf   压缩文件名.tar.gz

  解压缩后的文件只能放在当前的目录。

3  如果是zip格式文件

zip格式文件

unzip all.zip 

这条命令是将all.zip中的所有文件解压出来

转载地址:http://vrhxi.baihongyu.com/

你可能感兴趣的文章
十一新疆之旅中邂逅的一首诗《黄河,母亲之河》
查看>>
【MongoDB】The description of index(一)
查看>>
MongoDB索引学习笔记
查看>>
【MonogDB】The description of index(二) Embedded and document Index
查看>>
【MonogDB】The description of index(三) Compose and unique Index
查看>>
【MongoDB】The basic operation of Index in MongoDB
查看>>
【MongoDB】The connection between two tables
查看>>
【MongoDB】windows下搭建Mongo主(Master)/从(slave)数据库同步
查看>>
【MongoDB】以前学习mongodb知识的补充
查看>>
【MongoDB】The description of procedure in MongoDB
查看>>
【MongoDB】mongoimport and mongoexport of data (一)
查看>>
【MongoDB】mongoimport and mongoexport of data (二)
查看>>
【MongoDB】mongodump and mongorestore of mogodb
查看>>
【MongoDB】The Access control of mongodb
查看>>
【MongoDB】windows平台搭建Mongo数据库复制集(类似集群)(一)
查看>>
【MongoDB】深入了解MongoDB不可不知的十点
查看>>
【MongoDB】windows平台搭建Mongo数据库复制集(类似集群)(二)
查看>>
【MongoDB】windows平台搭建Mongo数据库复制集(类似集群)(三)
查看>>
感谢好朋友推荐的一首好听的歌
查看>>
【MongoDB】在window系统下搭建MongoDB的分片集群(一)
查看>>