ORACLE @ Work
Wednesday, February 15, 2012
tar and gzip In a Single Command
To compress:
tar cvf – file_name | gzip > file_name.tar.gz
tar cvf – file_name | bzip2 > file_name.tar.bz2
To uncompress:
gunzip < file_name.tar.gz | tar xvf –
bzip2 < file_name.tar.bz2 | tar xvf -
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment