• 欢迎访问db1024网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏db1024吧

Linux解压缩tar.gz和zip文件命令使用方法

建站知识 Liam 1年前 (2019-04-30) 343次浏览 12个评论 扫描二维码
文章目录[隐藏]

说明:Linux解压缩最常见2种压缩文件就是ziptar.gz,所以这里只说说这2种文件解压缩方法。未安装zip和unzip命令请看:Linux 安装zip和unzip命令的方法

方法

1、解压缩tar.gz文件
1、压缩命令

tar zcvf xx.tar.gz /home/wwwroot #把/home/wwwroot打包,并命名xx.tar.gz 

2、解压命令

tar zxvf xx.tar.gz #在当前目录解压xx.tar.gz 

tar命令详解请看:Linux中tar解压缩命令详解
2、解压缩zip文件
1、压缩命令

zip -r xx.zip /home/xx #压缩/home/xx目录并命名xx.zip 

2、解压命令

unzip /home/zz.zip #解压/home文件夹zz.zip文件到当前目录 

zip命令详解请看:Linux中zip压缩和unzip解压缩命令详解


db1024 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:Linux解压缩tar.gz和zip文件命令使用方法
喜欢 (0)
关于作者:
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
(12)个小伙伴在吐槽
  1. Hi there colleagues, its enormous paragraph about tutoringand fully explained, keep it up all the time.
    black mass2020-08-28 19:27 回复 Linux | Firefox浏览器 61.0
  2. I enjoy what you guys are usually up too. This sort of clever work and exposure! Keep up the good works guys I've included you guys to my own blogroll. cheap flights 2CSYEon
    cheap flights2020-08-26 22:06 回复 Linux | Chrome 52.0.2777.35
  3. This text is worth everyone's attention. When can I find out more?
    cheap flights2020-08-26 20:36 回复 Windows 7 | 360浏览器 SE
  4. Have you ever considered publishing an e-book or guest authoring on other sites? I have a blog centered on the same subjects you discuss and would love to have you share some stories/information. I know my visitors would appreciate your work. If you are even remotely interested, feel free to send me an e mail.
    cheap flights2020-08-26 16:57 回复 Mac OS X | Firefox浏览器 59.0
  5. You really make it seem really easy along with your presentation but I to find this matter to be actually one thing which I think I might by no means understand. It sort of feels too complex and very broad for me. I'm taking a look ahead in your subsequent put up, I will attempt to get the dangle of it!
    web hosting providers2020-08-26 06:45 回复 Linux | Firefox浏览器 52.9
  6. An impressive share! I've just forwarded this onto a colleague who was conducting a little research on this. And he actually ordered me dinner due to the fact that I stumbled upon it for him... lol. So let me reword this.... Thank YOU for the meal!! But yeah, thanx for spending the time to talk about this matter here on your web page. 3aN8IMa cheap flights
    cheap flights2020-08-24 18:09 回复 Linux | Chrome 66.0.3359.170
  7. What i don't understood is if truth be told how you're not really much more smartly-appreciated than you might be now. You are so intelligent. You know thus considerably in relation to this topic, produced me individually imagine it from a lot of numerous angles. Its like men and women are not involved until it is one thing to accomplish with Lady gaga! Your personal stuffs great. Always handle it up!
    cheap flights2020-08-24 11:50 回复 Linux | Firefox浏览器 56.0
  8. Nice post. I was checking continuously this blog and I'm impressed! Extremely useful info particularly the last part : ) I care for such info a lot. I was seeking this particular info for a very long time. Thank you and best of luck.
    web hosting service2020-08-14 16:28 回复 Linux | Firefox浏览器 52.9
  9. I love your blog.. very nice colors & theme. Did you create this website yourself or did you hire someone to do it for you? Plz answer back as I'm looking to construct my own blog and would like to know where u got this from. thanks a lot
    best web hosting company2020-08-14 16:06 回复 Linux | 未知浏览器
  10. hey there and thank you for your info – I have definitely picked up something new from right here. I did however expertise a few technical issues using this site, as I experienced to reload the web site many times previous to I could get it to load correctly. I had been wondering if your web hosting is OK? Not that I am complaining, but sluggish loading instances times will sometimes affect your placement in google and can damage your high quality score if advertising and marketing with Adwords. Well I'm adding this RSS to my email and could look out for much more of your respective exciting content. Ensure that you update this again very soon. adreamoftrains best website hosting
    adreamoftrains hosting services2020-08-12 11:33 回复 Linux | Firefox浏览器 56.0.4
  11. Your style is very unique in comparison to other folks I have read stuff from. I appreciate you for posting when you have the opportunity, Guess I'll just book mark this page.
    web hosting service2020-08-11 21:49 回复 Mac OS X | Firefox浏览器 62.0
  12. Valuable information. Fortunate me I found your web site by accident, and I am stunned why this accident did not took place in advance! I bookmarked it.
    best web hosting2020-08-11 07:29 回复 Linux | Firefox浏览器 59.0