- tar $ tar -cvf File.tar Dir - untar $ tar -xvf File.tar -c, --create create a new archive -x, --extract, --get extract files from an archive -v, --verbose verbosely list files processed -f, --file=ARCHIVE use archive file or device ARCHIVE2. .tar.gz
- tar $ tar -zcvf File.tar.gz Dir - untar $ tar -zxvf File.tar.gz -z, --gzip, filter the archive through gzip --gunzip, --ungzip -c, --create create a new archive -x, --extract, --get extract files from an archive -v, --verbose verbosely list files processed -f, --file=ARCHIVE use archive file or device ARCHIVE3 .tar.bz2
- tar $ tar -jcvf File.tar.bz2 Dir - untar $ tar -jxvf File.tar.bz2 -j, --bzip2 filter the archive through bzip2 -c, --create create a new archive -x, --extract, --get extract files from an archive -v, --verbose verbosely list files processed -f, --file=ARCHIVE use archive file or device ARCHIVE4 .tar.xz
- tar $ tar -Jcvf File.tar.xz Dir - untar $ tar -Jxvf File.tar.xz -J, --xz filter the archive through xz --lzip filter the archive through lzip --lzma filter the archive through xz --lzop -c, --create create a new archive -x, --extract, --get extract files from an archive -v, --verbose verbosely list files processed -f, --file=ARCHIVE use archive file or device ARCHIVE5. 參考來源
GNU / Linux 各種壓縮與解壓縮指令
沒有留言:
張貼留言