Powered by eUKhost®

Announcement

Collapse
No announcement yet.

How to View a gzipped file which donít have the .gz suffix

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to View a gzipped file which donít have the .gz suffix

    View a gzipped file which donít have the .gz suffix:

    You can uncompress a gzipped file which donít have the gz suffix. If you try to uncompress a gzipped file which donít have the .gz suffix with ďgunzipĒ or ďgzip -dĒ command you will face the following error.
    [[email protected] Desktop]$ gunzip sample_file
    gzip: sample_file: unknown suffix -- ignored
    [[email protected] Desktop]$
    But this zcat will uncompress the file and shows the content as shown below.
    [[email protected] Desktop]$ cat > sample_file
    This is a test file used for gunzip and zcat testing for this article
    this is power of z command
    [[email protected] Desktop]$ gzip sample_file
    [[email protected] Desktop]$ mv sample_file.gz sample_file
    [[email protected] Desktop]$ gzip -d sample_file
    gzip: sample_file: unknown suffix -- ignored
    [[email protected] Desktop]$
    [[email protected] Desktop]$ zcat sample_file
    This is a test file used for gunzip and zcat testing for this article
    this is power of z command
    [[email protected] Desktop]$


ban-img
Working...
X