Linux Forums - Linux Help,Advice & support community:LinuxSolved.com
Others => Miscellaneous => Topic started by: keen_prat on March 05, 2004, 01:58:02 PM
-
Hi..
I am not new to linux but I mostly do my work on graphical interface.. So can any one tell me how i can decompress the files in tar.gz , bz2, zip and other archieve in linux using command line ?
Thank you!..
-
ok u may use tar
the typical syntax is
tar -xvzf <filename>
-
what about bz2 ? will it use the same tar -xvzf <filename> ?
-
for tar only: tar -xvf file.tar
for tar.gz : tar -xvzf file.tar.gz
for gzip only: gzip -d file.gz
for bzip2 : bzip2 -d file.bz2
for zip: unzip file.zip
-
Hi Frndz,
Why should we use different file formats?
Which one is best?
Thanks in advance,
Suku :D
-
basically files with bz2 are the smallest ie.. having highest compression.. and tar.gz is the most common one..
-
Also there is one format know as .tgz which we call a tarball. It's normally used in Slackware. But in other distros it's still usable.
tgz : gunzip filename.tgz | tar -xvf
-
How to pack some number of files into a single pack?
How to compress the files?
Please give me detailed How to? :idea:
Thanks,
Suku
-
To compress a folder named fld1 u need to use
tar -cvvjf fld1.tar.bz2 fld1
Thats it.... pls not its not a necessity to give fld1.tar.bz2, u can give any name but to distinguish it as a bz2 file we name it so.
for tar.gz files
tar -cvvzf fld1.tar.gz fld1
the best place to know more is,
open a terminal & shoot "man tar"
u'll find all the options there.....
Thanks
Gokul