日本免费全黄少妇一区二区三区-高清无码一区二区三区四区-欧美中文字幕日韩在线观看-国产福利诱惑在线网站-国产中文字幕一区在线-亚洲欧美精品日韩一区-久久国产精品国产精品国产-国产精久久久久久一区二区三区-欧美亚洲国产精品久久久久

linux 最快的壓縮命令 linux壓縮命令( 三 )

unzip
-c:將解壓縮的結(jié)果顯示到屏幕上,并對字符做適當(dāng)?shù)霓D(zhuǎn)換-d:指定解壓路徑-l:顯示壓縮文件內(nèi)所包含的文件-v:執(zhí)行時顯示詳細的信息-q:不顯示解壓過程# -c 顯示解壓內(nèi)容到屏幕,并不解壓文件按[root@ym test2]# unzip -c test.zipArchive:test.zip extracting: test/inflating: test/1test.sh#!/bin/shseq 1 5 > /tmp/test.log#exec < /tmp/test.logcat /tmp/test.logwhile read linedoecho $linedoneecho "ok"........省略# -d 指定解壓路徑[root@ym test2]# unzip test.zip -d /tmp/Archive:test.zipcreating: /tmp/test/inflating: /tmp/test/1test.shinflating: /tmp/test/2test.shinflating: /tmp/test/bigfileinflating: /tmp/test/fileinflating: /tmp/test/passwdinflating: /tmp/test/test.sh# -l 顯示解壓信息,并不解壓文件[root@ym test2]# unzip -l test.zipArchive:test.zipLengthDateTimeName------------------- ---------007-08-2022 21:10test/12207-04-2022 00:11test/1test.sh20307-04-2022 00:17test/2test.sh 1048576007-08-2022 19:40test/bigfile266007-08-2022 19:30test/file266007-08-2022 18:55test/passwd3707-08-2022 18:59test/test.sh---------------- 104914427 files[root@ym test2]# unzip -q test.zip tar
[root@ym test2]# tar --helptar [選項...] [FILE]...-c: 創(chuàng)建歸檔文件-f:使用歸檔文件-z: 壓縮成 gzip 格式的歸檔文件-j:壓縮成 bzip2 格式歸檔文件-J:壓縮 xz 格式歸檔文件-C:指定解壓文件的位置-r: 添加文件到歸檔末尾-u: --update 僅追加比歸檔中副本更新的文件-t: 列出存檔中文件的目錄-k: 保留源文件-x: 解壓歸檔文件-P: 保留路徑符號-v: 解壓詳細信息--delete:從存檔中刪除# 創(chuàng)建 tar 歸檔文件操作# -c 創(chuàng)建歸檔文件 -f 使用歸檔文件[root@ym test]# tar cf passwd.tar passwd[root@ym test]# ls1test.sh2test.shbigfilefilepasswdpasswd.tartest.sh# -rf 添加文件到歸檔文件中去[root@ym test]# tar rf passwd.tar file[root@ym test]# tar ft passwd.tarpasswdfile# 創(chuàng)建 tar.gz 歸檔壓縮文件# cfz 創(chuàng)建歸檔壓縮文件格式:.tar.gz[root@ym test]# tar cfz passwd.tar.gz passwd[root@ym test]# ls1test.sh2test.shbigfilefilepasswdpasswd.tarpasswd.tar.gztest.sh# cfj 創(chuàng)建歸檔壓縮文件格式:.tar.bz[root@ym test]# tar cfj passwd.tar.bz passwd[root@ym test]# ls1test.shbigfilepasswdpasswd.tar.bztest.sh2test.shfilepasswd.tarpasswd.tar.gz# cfx 創(chuàng)建歸檔壓縮文件:tar.xz[root@ym test]# tar cfJ passwd.tar.xz passwd[root@ym test]# ls passwd.tar.xzpasswd.tar.xz# 解壓歸檔文件并指定保存位置[root@ym test]# tar xfz passwd.tar.gz -C /tmp/[root@ym test]# tar xfj passwd.tar.bz -C /tmp/[root@ym test]# tar xfJ passwd.tar.xz -C /tmp/# --delete 從歸檔文件中刪除指定文件[root@ym test]# tar --delete file -f passwd.tar[root@ym test]# tar tf passwd.tarpasswd# -P 保留歸檔中的文件路徑(大寫)[root@ym ~]# tar cfP test.tar /tmp/ym/test[root@ym a]# tar tfP test.tar /tmp/ym/test//tmp/ym/test/passwd.tar/tmp/ym/test/1test.sh/tmp/ym/test/2test.sh/tmp/ym/test/bigfile/tmp/ym/test/file/tmp/ym/test/passwd/tmp/ym/test/test.sh/tmp/ym/test/passwd.tar.xz/tmp/ym/test/passwd.tar.gz/tmp/ym/test/passwd.tar.bz/tmp/ym/test/passwd.gar.xz/tmp/ym/test/--delete

推薦閱讀