Results 1 to 7 of 7
  1. #1
    Join Date
    Nov 2000
    Location
    New York
    Posts
    78

    Question NEED HELP / How to compress file to "tar.gz" format??

    Hello,

    I have noticed when I download files many of them are in a format like "filename.tar.gz".

    When I decompress these types of files it is always a two step process.

    It appears as though the files are smaller than using just "zip" for compression.

    How are webmasters able to compress files using the "*.tar.gz" format? I cannot figure it out?

    Thanks in advance for any and all input.

    WP1
    Webbing Along!!!

  2. #2
    Join Date
    May 2001
    Location
    California
    Posts
    800
    tar -cpf filename.tar <directory or file>
    gzip filename.tar

    then you'll get filename.tar.gz ..
    Roy K.
    Pixie Internet Services - http://www.pixiehost.com
    Affordable, reliable hosting solution with Instant Activation

  3. #3
    or tar -zcvf filename.tar.gz <files to compress>
    *AlphaOmegaHosting.Com* - Hosting since 1998
    Managed Dedicated Servers and VPS
    Hosted Exchange 2010 Email Service

  4. #4
    Join Date
    Nov 2000
    Location
    New York
    Posts
    78

    Question

    Hi,

    Thanks for responding.

    drhonk & dandanfirema

    Can that command be done with and FTP rogram like WS_FTP LE?

    Is so where would I place the command?

    Could I "tar.gz" a file like "abc.php" by writing the command as

    "tar -cpf abc.php.tar "
    THEN
    "gzip abc.php.tar"

    OR

    "tar -zcvf abc.php.tar.gz"

    OR

    "tar -cpf abc.tar "
    THEN
    "gzip abc.tar"

    OR

    "tar -zcvf abc.tar.gz"

    Thanks again in advance for your response.

    WP1
    Webbing Along!!!

  5. #5
    Join Date
    Aug 2002
    Location
    Chicago, IL, United States
    Posts
    64
    the files have to be decompressed or compressed on your local system.. ftp servers dont give you shell or command line access.. you questions have mostly been responded rto but tar -xvzf whatever.tgz
    tends to work fine for me the it un gzips and un tars all of the files and keeps the directory structure they were created with, i would hope you compress your files into dirs or from them so other people untar\gziping them will not get their ld's all messed up


    you should look at the man pages.. man tar
    and man gzip for more infomation of usage

    Anthony LaMantia
    bia-security.com
    Last edited by Chicken; 10-22-2002 at 10:01 PM.
    Anthony LaMantia
    http://www.bia-security.com

  6. #6
    Join Date
    Apr 2002
    Location
    USA
    Posts
    215
    WP1,

    I recently had to do this myself. If you aren't running a Unix machine, you can use WinZip (or PKZip) to decompress these type files. I use WinZip.

    http://www.winzip.com

    Jessica
    --- To Err is Human ... And Don't You Forget It---

  7. #7
    Join Date
    Feb 2002
    Posts
    956
    Always do gzip -9 instead of gzip, gzip -9 is better compression
    This forum officially ****ing sucks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •