close

壓縮:

tar -cvzf F1.tar.gz F2.txt F3.txt

( 將 F2.txt 與 F3.txt 打包壓縮在 F1.tar.gz )

 

tar -cvzf F1.tar.gz *.txt

( 將所有副檔名 .txt 的檔案打包壓縮在 F1.tar.gz )

 

tar -ztvf F1.tar.gz

( 顯示 F1.tar.gz 打包的檔案名, 不會真的解壓縮 )

 

 

解壓縮:

tar -xzvf F1.tar.gz

 ( 解壓縮 F1.tar.gz )

 

 

  • t: List the contents of an archive
  • v: Verbosely list files processed (display detailed information)
  • z: Filter the archive through gzip so that we can open compressed (decompress) .gz tar file
arrow
arrow
    全站熱搜

    bamil 發表在 痞客邦 留言(0) 人氣()