title: tar指令總結
tags: tar,壓縮,排除
z:壓縮
c:建立一個檔案
v:詳細資訊--------->過程
f:打封包件
t:檢視壓縮封包件清單
x:解壓縮
-exclude=test
tar zcvf 筐(打包之後的檔案) 蘋果(需要打包的檔案)
/etc/目錄為linux系統的預設配置檔案及服務啟動指令
a.用tar打包/etc/整個目錄(打包及壓縮)
b.請用tar打包/etc整個目錄但排除/etc/services檔案
c 請把etc.tar.gz壓縮包解壓縮至/tmp/test目錄中