日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > linux >内容正文

linux

linux系统zip压缩命令,linux zip 压缩命令

發(fā)布時間:2023/12/8 linux 32 豆豆
生活随笔 收集整理的這篇文章主要介紹了 linux系统zip压缩命令,linux zip 压缩命令 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

linux ??zip命令 的基本用法是:

zip ?[參數(shù)] [打包后的文件名] [打包的目錄路徑]

linux ??zip命令 參數(shù)列表:

-a???? 將文件轉成ASCII模式

-F???? 嘗試修復損壞的壓縮文件

-h???? 顯示幫助界面

-m???? 將文件壓縮之后,刪除源文件

-n 特定字符串??? 不壓縮具有特定字尾字符串的文件

-o???? 將壓縮文件內的所有文件的最新變動時間設為壓縮時候的時間

-q???? 安靜模式,在壓縮的時候不顯示指令的執(zhí)行過程

-r???? 將指定的目錄下的所有子目錄以及文件一起處理

-S???? 包含系統(tǒng)文件和隱含文件(S是大寫)

-t 日期???? 把壓縮文件的最后修改日期設為指定的日期,日期格式為mmddyyyy

舉例:

將/home/Blinux /html/ 這個目錄下所有文件和文件夾打包為當前目錄下的html.zip

zip –q –r?? html.zip /home/Blinux /html

上面的命令操作是將絕對地址的文件及文件夾進行壓縮.以下給出壓縮相對路徑目錄

比如目前在Bliux這個目錄下,執(zhí)行以下操作可以達到以上同樣的效果.

zip –q –r html.zip html

比如現(xiàn)在我的html目錄下,我操作的zip壓縮命令是

zip –q –r html.zip *

以上是在安靜模式下進行的,而且包含系統(tǒng)文件和隱含文件

以下是我在SSH下的幫助,供大家參考:

Copyright (C) 1990-2005 Info-ZIP

Type 'zip "-L"' for software license.

Zip 2.31 (March 8th 2005). Usage:

zip [-options] [-b path] [-t mmddyyyy] [-n suffixes] [zipfile list] [-xi list]

The default action is to add or replace zipfile entries from list, which

can include the special name - to compress standard input.

If zipfile and list are omitted, zip compresses stdin to stdout.

-f?? freshen: only changed files? -u?? update: only changed or new files

-d?? delete entries in zipfile??? -m?? move into zipfile (delete files)

-r?? recurse into directories???? -j?? junk (don't record) directory names

-0?? store only?????????????????? -l?? convert LF to CR LF (-ll CR LF to LF)

-1?? compress faster????????????? -9?? compress better

-q?? quiet operation????????????? -v?? verbose operation/print version info

-c?? add one-line comments??????? -z?? add zipfile comment

-@?? read names from stdin??????? -o?? make zipfile as old as latest entry

-x?? exclude the following names? -i?? include only the following names

-F?? fix zipfile (-FF try harder) -D?? do not add directory entries

-A?? adjust self-extracting exe?? -J?? junk zipfile prefix (unzipsfx)

-T?? test zipfile integrity?????? -X?? eXclude eXtra file attributes

-y?? store symbolic links as the link instead of the referenced file

-R?? PKZIP recursion (see manual)

-e?? encrypt????????????????????? -n?? don't compress these suffixes

總結

以上是生活随笔為你收集整理的linux系统zip压缩命令,linux zip 压缩命令的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。