Skip to content

Linux 常用命令

解压文件

解压到当前目录同名文件夹:

sh
tar zxvf <filename>.tgz --one-top-level

自定义文件夹名:

sh
tar zxvf <filename>.tgz --one-top-level=<folder>

How to extract files to another directory using 'tar' command? - Ask Ubuntu