# -+- number -+- category -+- title -+- email -+- name -+- homepage -+- clickOnName -+- language -+- image -+- browser-used -+- security-cookie =0 -+- 2004-02-23:2 -+- UNIX Basics -+- Unzip and untar using redirection and pipe -+- abhinavs@ureach.com -+- Abhinav Srivastava -+- -+- nolink -+- English -+- -+- Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0) -+- 4558 To restore the original file from *.tar.gz format, users normally run the following commands on UNIX:


1) gunzip *.tar.gz

2) tar -xvf *.tar

It can be done in one step and that is:

gunzip < test.tar.gz | tar xvf -

The above workes with any version of tar. If you have gnutar (the tar that comes with linux is gnu tar) then you can also use the -z option and tar will do it all for you:
tar -zxvf test.tar.gz