tar 常用指令

markdown 1. tar解壓 ``` tar -zxvf 檔名 tar -cPzf /u1/topprod/tiptop.gz /u1/topprod/tiptop ``` 2. tar壓縮 ``` tar -zcvf 檔名 tar -zcvf /u1/topprod/tiptop.gz ``` 常用參數 ``` -c 打包一個 tar 檔案 -x 解開一個 tar 檔案 -t 檢視 tar 檔案的內容 -z 使用 gzip 壓縮 -v 顯示建立 tar 檔案的過程 -P 使用絕對路徑 -f 指定 tar 檔案的檔案名稱。此參數的後面要接檔案名稱,因此要注意參數的順序 (通常是把 f 參數寫在最後一個,或者是與其它參數拆開使用) ```

留言

這個網誌中的熱門文章

Linux Network Configation