Opening .Gz file

Discussion in 'Site & Server Administration' started by James Hertz, Dec 23, 2009.

  1. #1
    How to open / read an. Gz file which is generated in the maillog on linux?
     
    James Hertz, Dec 23, 2009 IP
  2. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #2
    use the gunzip command
     
    Bohra, Dec 23, 2009 IP
  3. James Hertz

    James Hertz Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Can you tell me how to uncompress it with gunzip?
     
    James Hertz, Dec 23, 2009 IP
  4. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #4
    gunzip filename.txt.gz (where filename.txt.gz is the name of the file you wish to uncompress)
     
    Bohra, Dec 23, 2009 IP
  5. sahabcse

    sahabcse Well-Known Member

    Messages:
    272
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    140
    #5
    gzip -d file.txt.gz
    cat file.txt
    less filr.txt

    or

    zless file.txt.gz
    zmore file.txt.gz
     
    sahabcse, Dec 23, 2009 IP
  6. sanych

    sanych Peon

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    gunzip -d filename.gz
     
    sanych, Dec 23, 2009 IP
  7. baonhi41

    baonhi41 Peon

    Messages:
    141
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    or Download/Copy that file to Windows PC :D
    Use winrar to extract :D
     
    baonhi41, Dec 29, 2009 IP
  8. olddocks

    olddocks Notable Member

    Messages:
    3,275
    Likes Received:
    165
    Best Answers:
    0
    Trophy Points:
    215
    #8
    Try this command.

     
    olddocks, Dec 29, 2009 IP