zmore
file_compressionlinux
The zmore command is one of the most frequently used commands in Linux/Unix-like operating systems. zmore View compressed files with the more pager
Quick Reference
Command Name:
zmore
Category:
file_compression
Platform:
linux
Basic Usage:
zmore [options] [arguments]
Common Use Cases
Syntax
zmore [file...]
Examples
How to Use These Examples
The examples below show common ways to use the zmore
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
Basic Examples:
View a compressed file with zmore
zmore logfile.gz
View multiple compressed files
zmore file1.gz file2.gz file3.gz
Advanced Examples:
View a compressed file and search for a pattern (press / to search)
zmore large_log.gz
Pipe the output of a command to zmore
find /var/log -name "*.gz" | zmore
Display line numbers in zmore output
zmore log.gz | cat -n
View compressed log files and highlight important patterns
zmore system.log.gz | grep --color=always "ERROR"