Linux解压多个压缩包
-
对于解压多个.gz文件的,用此命令:
for gz in *.gz; do gunzip $gz; done
-
对于解压多个.tar.gz文件的,用下面命令:
for tar in *.tar.gz; do tar xvf $tar; done
对于解压多个.gz文件的,用此命令:
for gz in *.gz; do gunzip $gz; done
对于解压多个.tar.gz文件的,用下面命令:
for tar in *.tar.gz; do tar xvf $tar; done