zcat

Updated: 07 August 2026

zcat is identical to gunzip -c

zcat uncompresses either a list of files on the command line or its standard input and writes the uncompressed data on standard output.


Look at the contents of wp2shell-access.log.gz without un-compressing it

zcat wp2shell-access.log.gz

gzip

Updated: 04 October 2024

Create a gzip file of backup.sql and keep the original file

gzip --keep backup.sql

Decompress an archive

gzip -d backup.sql.gz

unzip

Updated: 27 May 2023

List, test and extract compressed files in a ZIP archive

Unzip a zip file

unzip wordpress-seo-premium-20.8.zip

zip

Updated: 18 March 2024

Zip a file

zip -r curl-debug-wp-plugin.zip ./curl-debug-wp-plugin --exclude '*.git*'

Zip a folder without including the root folder

zip -rj ctd-wp-theme.zip ./ctd-wp-child-theme