×
Create a new article
Write your page title here:
We currently have 3,189 articles on s23. Type your article name above or create one of the articles listed here!



    s23
    3,189Articles

    HowTo/UncompressFilesInLinux

    Revision as of 19:01, 19 January 2005 by imported>mutante
    (diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

    .tar

    UNCOMPRESS: tar xvf FileName.tar

    COMPRESS: tar cvf FileName.tar DirName


    .gz

    UNCOMPRESS1: gunzip FileName.gz

    UNCOMPRESS2: gzip -d FileName.gz

    COMPRESS: gzip FileName

    .tar.gz

    UNCOMPRESS: tar zxvf FileName.tar.gz

    COMPRESS: tar zcvf FileName.tar.gz DirName


    .bz2

    UNCOMPRESS1: bzip2 -d FileName.bz2

    UNCOMPRESS2: bunzip2 FileName.bz2

    COMPRESS: bzip2 -z FileName

    .tar.bz2

    UNCOMPRESS: tar jxvf FileName.tar.bz2

    COMPRESS: tar jcvf FileName.tar.bz2 DirName


    .bz

    UNCOMPRESS1: bzip2 -d FileName.bz

    UNCOMPRESS2: bunzip2 FileName.bz

    COMPRESS: unknown

    .tar.bz

    UNCOMPRESS: tar jxvf FileName.tar.bz

    COMPRESS: unknown


    .Z

    UNCOMPRESS: uncompress FileName.Z

    COMPRESS: compress FileName

    .tar.Z

    UNCOMPRESS: tar Zxvf FileName.tar.Z

    COMPRESS: tar Zcvf FileName.tar.Z DirName


    .tgz

    UNCOMPRESS: tar zxvf FileName.tgz

    COMPRESS: unknown

    .tar.tgz

    UNCOMPRESS: tar zxvf FileName.tar.tgz

    COMPRESS: tar zcvf FileName.tar.tgz FileName


    .zip

    UNCOMPRESS: unzip FileName.zip

    COMPRESS: zip FileName.zip DirName


    .rar

    UNCOMPRESS: rar a FileName.rar

    COMPRESS: rar e FileName.rar

    RAR : http://www.rarsoft.com/download.htm

    [root@www2 tmp]# cp rar_static /usr/bin/rar


    .lha

    UNCOMPRESS: lha -e FileName.lha

    COMPRESS: lha -a FileName.lha FileName

    lha : http://www.infor.kanazawa-it.ac.jp/~ishii/lhaunix/

    [root@www2 tmp]# cp lha /usr/bin/


    .rpm

    UNCOMPRESS: rpm2cpio FileName.rpm | cpio -div


    .deb

    UNCOMPRESS: dpkg -x FileName.deb


    from: http://www.linuxgazette.com/node/9542

    Cookies help us deliver our services. By using our services, you agree to our use of cookies.
    Cookies help us deliver our services. By using our services, you agree to our use of cookies.