Unzipping
to uncompress the file foo.tar.gz you could use one of the following commands:
gunzip -c foo.tar.gz | tar xvf -
or alternatively:
gunzip < foo.tar.gz | tar xvf -
Zipping
tar cvf - foodir | gzip > foo.tar.gz
Unzipping
to uncompress the file foo.tar.gz you could use one of the following commands:
gunzip -c foo.tar.gz | tar xvf -
or alternatively:
gunzip < foo.tar.gz | tar xvf -
tar cvf - foodir | gzip > foo.tar.gz
請先 登入 以發表留言。