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