untar 解壓縮指令
此程式可以從*.tar 或 *.tgz 壓縮檔 列出/解壓縮 檔案.
檔案屬性仍會被保留,且連結檔案也會存在.
此程式也可以加上參數 -d 解壓縮非 tar 的檔案.
安裝:
cd /usr/ports/archivers/untar/用途: 用來方便的解壓縮檔案,不用去記一些有的沒有的指令.
make install
make clean
語法:
untar [參數] archive.tgz [filename] ...
untar [參數] -d filename.gz ...
參數:
-t 測試模式 -- 列出內容但不實際進行解壓縮動作
-f 強制模式 -- 強制覆蓋以存在的相同檔案
-q 安靜模式 -- suppress the normal chatter
-v 複雜輸出模式 -- output extra information about each file
-p 完整路徑模式 -- allow absolute pathnames (don't strip leading '/')
-c Convert -- convert files to local text format
-d 解壓縮 -- perform "gunzip" but not "tar x"
-n No-name -- with "-d", ignore original name in gzip header
附註: 因為個人覺得此程式不太實用,故不進行細部測試了.