linux(centos8)文件解压命令
linux解压命令
tar 解压命令
常用解压命令
1 [.tar] 文件 解压到当前文件夹
tar -xvf xxxx.tar
2 [.tar.gz] 文件 解压到当前文件夹
tar -xzvf xxxx.tar.gz
3 [.tar] 解压到指定文件夹 -C 必须是大写
tar -xvf xxxx.tar -C /home/
unzip 解压命令
常用解压命令
1 [.zip]解压到当前文件夹
unzip dist.zip
2 [.zip] 解压到指定文件夹
unzip -d /app/Report/ReportUI_8200/ dist.zip
2 [.zip] 解压到指定文件夹(强行覆盖原有文件)
unzip -od /app/Report/ReportUI_8200/ dist.zip