解压多个压缩包
一、对于解压多个.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