Reference

Cheat Sheet

The commands you keep forgetting, with a one-line description and a real example you can copy - 384 across 26 tools. Pick a tool in the sidebar, or search across all of them.

tar & Compression

Create and extract archives, and zip / unzip files.
CommandWhat it doesExample
mnemonicc=create, x=extract, t=list, z=gzip, f=file.czf = Create Zip File
tar -czfCreate a gzip-compressed archive.tar -czf site.tar.gz public/
tar -xzfExtract a gzip archive.tar -xzf site.tar.gz
tar -xzf -CExtract into a target folder.tar -xzf site.tar.gz -C /var/www
tar -tzfList an archive’s contents.tar -tzf site.tar.gz
tar --excludeSkip paths while archiving.tar -czf app.tar.gz app/ --exclude='*.log'
gzipCompress a single file in place.gzip big.log
gunzipDecompress a .gz file.gunzip big.log.gz
zip -rMake a cross-platform .zip.zip -r site.zip public/
unzipExtract a .zip.unzip site.zip
unzip -dExtract a .zip into a folder.unzip site.zip -d ./out