Close Menu
    What's Hot

    YouTube Unblocked Proxy: Overview, Benefits, and Real-World Use Cases

    April 7, 2026

    Linux Kernel Release Frequency Statistics 2026

    April 7, 2026

    How To Use The SSH Login Command

    April 7, 2026
    Facebook X (Twitter) Instagram
    Command Linux
    • About
    • Man Pages
    • Arch Linux
    • Statistics
    • How to
      • Q&A
    • OS
      • Windows
    • Blog
      • Featured
    • MORE
      • Easter Eggs
      • IP Address
    • Write For Us
    • Contact Us
    Command Linux
    Home - man page - ZGREP

    ZGREP

    WillieBy WillieJanuary 22, 2026Updated:January 22, 2026No Comments1 Min Read

    NAME

    zgrep – search possibly compressed files for a regular expression  

    SYNOPSIS

    zgrep [ grep_options ] [ -e ] pattern filename…  

    DESCRIPTION

    Zgrep invokes grep on compressed or gzipped files. These grep options will cause zgrep to terminate with an error code: (-[drRzZ]|–di*|–exc*|–inc*|–rec*|–nu*). All other options specified are passed directly to grep. If no file is specified, then the standard input is decompressed if necessary and fed to grep. Otherwise the given files are uncompressed if necessary and fed to grep.

    If the GREP environment variable is set, zgrep uses it as the grep program to be invoked.  

    EXIT CODE

    2 – An option that is not supported was specified.  

    AUTHOR

    Charles Levert ([email protected])  

    Willie
    • Website

    Willie has over 15 years of experience in Linux system administration and DevOps. After managing infrastructure for startups and enterprises alike, he founded Command Linux to share the practical knowledge he wished he had when starting out. He oversees content strategy and contributes guides on server management, automation, and security.

    Related Posts

    E2FREEFRAG

    April 7, 2026

    Net::DNS::RR::DHCID

    April 7, 2026

    LOGROTATE

    April 7, 2026

    EVP_MD_CTX_destroy

    April 7, 2026
    Top Posts

    How to Fix the “wget: command not found” Error

    February 13, 2026

    Visual Harmony in the Modern Casino: Why a Clean UI Leads to Longer Sessions

    March 23, 2026

    File System Performance Comparison Statistics 2026

    March 10, 2026

    VISUDO

    March 2, 2026
    • Home
    • Contact Us
    • Privacy Policy
    • Terms of Use

    Type above and press Enter to search. Press Esc to cancel.