• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
肥肥大超
博客园    首页    新随笔    联系   管理    订阅  订阅

Mint/Ubuntu Terminal(转)

Here is how to quickly zip and unzip files using Linux Mint/Ubuntu terminal :

1. Install zip and unzip if not present by typing :

sudo apt-get install zip

sudo apt-get install unzip

2. Once installed, to compress files or folders in .zip format, type :

zip nameoftargetziparchive *

 

 

This will put all the files from current directory into the archive named docs as specified and saved as docs.zip.

To compress only a single specific file from current directory :

zip nameofarchive filetobecompressed

 

2. To unzip the files into a target directory :

unzip nameofarchive -d pathwheretoextract

 

Note that specifying just name of archive will unzip it’s contents into the current directory.

To quickly list what files are present in the zip archive :

unzip -l nameofarchive

 

To find out other cool features, as always use man command :

man zip

man unzip

Happy compressing!

 

勇气,信念,坚持
posted @ 2013-07-30 17:38  sheroHuo  阅读(273)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3