tar -zxvf 压缩包名称 -C 指定的文件夹 eg: 将JDK 解压到 /opt 目录 下 tar -zxvf tar -zxvf jdk-8u321-linux-x64.tar.gz -C /opt