×
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: Difference between revisions

    Content added Content deleted
    imported>mutante
    mNo edit summary
    imported>mutante
    mNo edit summary
    Line 129: Line 129:
    </pre>
    </pre>
    from: http://www.linuxgazette.com/node/9542
    from: http://www.linuxgazette.com/node/9542


    [[Category:HowTo]]
    [[Category:Linux]]

    Revision as of 21:23, 19 February 2005

    .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.