• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
sharadchhetri

sharadchhetri

Tutorials On Linux, Unix & Open Source

  • Home
  • Linux Commands
  • Resources
    • Learn Linux
  • My WordPress plugins

Read the file inside compressed .gz files without extract

September 13, 2011 by Sharad Chhetri 2 Comments

Read the file inside compressed .gz files without extract

I would like to share 3 simple commands by which U can read the files inside the compressed .gz file without extracting.

For eg.
We have a log file called test.log and we compressed it by using command “gzip test.log” .
It will compressed the file into test.log.gz .

Now U want to read the test.log file which is compressed inside the file test.log.gz .

Command 1: zcat test.log.gz

Command 2 : zless
test.log.gz

Command 3 : zmore
test.log.gz

This is very useful command I hope U will enjoy it.
Cheers !!

Share this:

  • Twitter
  • Facebook
  • More
  • Print
  • Email
  • LinkedIn
  • Reddit
  • Tumblr
  • Pinterest
  • Pocket
  • Telegram
  • WhatsApp
  • Mastodon

Related posts:

  1. Extract single and selected files from RPM package on Linux
  2. rsync all files,hidden files,symlinks,hardlinks to remotes Linux Server
  3. linux command to list the files from rpm package without extracting
  4. How to extract RPM package on Linux system
  5. Your data directory and files are probably accessible from the internet because the .htaccess file does not work owncloud
  6. postgres database backup script using database user password inside
  7. NOTICE: nagios.cmd file not found. Please specify the location of this file in your /etc/vshell.conf file
  8. check_memory unable to read output Nagios nrpe
  9. How to fix read only USB pen drive in Ubuntu
  10. vi : Edit file without opening it

Filed Under: Linux, Tips And Tricks

Reader Interactions

Comments

  1. saurav says

    October 13, 2014 at 10:43 pm

    zmore/zless/zcat does not work

    Reply
    • sharadchhetri says

      October 14, 2014 at 12:04 pm

      Install gzip package.

      If still have issue, let me know which OS you are working

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Our Social Media Presence

  • Facebook
  • GitHub
  • Twitter

Linux Command

What is Linux Internal And External Command

Linux Basic Commands With Examples For Every Beginner

tr command to convert lines to space , tab and vertical tab

smbpasswd command not found on CentOS 7 and RHEL 7

Solution : semanage command not found

Unix / Linux : How to print duplicate lines from file

More Posts from this Category

You Might Like These Articles!

simplecodesyntax wordpress plugin

SimpleCodeSyntax : My Another WordPress Plugin

Install Nginx

How To Install Nginx On Ubuntu 22.04 LTS

Install Latest Git package in Ubuntu Operating System

How To Always Install Latest Git Package In Ubuntu Operating System

Bash script for installing VirtualBox on Ubuntu 22.04 LTS Desktop

Install VirtualBox On Ubuntu 22.04 LTS Desktop (Bash Script)

libfuse

dlopen(): error loading libfuse.so.2 – Got Error On Ubuntu

Failed to open/create the internal network

VirtualBox Error: Failed to open/create the internal network

Always Useful Tips And Tricks

How to create a file with cat command

set and unset line number in file with vi editor

How to forcefully send mail from mailq in sendmail MTA

Convert video file into gif file through command line in linux

GNU Screen

How to zip directory in linux explained with examples

Allow only members of Wheel group to use su command on RHEL/CentOS

Explore 90+ Article On "Linux Tips And Tricks"

Copyright © 2023 ยท
The material in this site cannot be republished either online or offline, without our permission.
Proudly Blogging From Bharat.

  • Contact
  • About Me
  • My WordPress plugins
  • Privacy Policy