xz 解压缩命令,老是忘记

.tar.xz的解压命令
$ xz -d ***.tar.xz
$ tar -xvf ***.tar
 
 
或者
$ tar xvJf ***.tar.xz
tar -zxvf a.tar.gz
tar -zxvf a.tgz
tar -zxvf a.gz
tar -Jxvf a.tar.xz
tar -jxvf a.bz2

bunzip2 linux-2-4-2.tar.bz2 生成 linux-2-4-2.tar 
tar xvf linux-2-4-2.tar

1、*.tartar –xvf 解压
2、*.gz 用 gzip -d或者gunzip 解压
3、*.tar.gz和*.tgz 用 tar –xzf 解压
4、*.bz2 用 bzip2 -d或者用bunzip2 解压
5、*.tar.bz2用tar –xjf 解压
6、*.Z 用 uncompress 解压
7、*.tar.Z 用tar –xZf 解压
8、*.rar 用 unrar e解压
9、*.zipunzip 解压
tar

  -j, --bzip2                filter the archive through bzip2
  -J, --xz                   filter the archive through xz
      --lzip                 filter the archive through lzip
      --lzma                 filter the archive through lzma
      --lzop
      --no-auto-compress     do not use archive suffix to determine the
                             compression program
  -z, --gzip, --gunzip, --ungzip   filter the archive through gzip
  -Z, --compress, --uncompress   filter the archive through compress

  -v, --verbose              verbosely list files processed

  -x, --extract, --get       extract files from an archive

  -A, --catenate, --concatenate   append tar files to an archive
  -c, --create               create a new archive

https://www.cnblogs.com/Sabre/p/10365395.html

原文地址:https://www.cnblogs.com/tekikesyo/p/12091151.html