Linux compress and extract tar.gz and zip archives
Bash Dasun Kalupahana 82 views
tar -czf backup.tar.gz folder/ # create tar.gz
tar -xzf backup.tar.gz # extract
tar -xzf backup.tar.gz -C /target/ # extract to a folder
zip -r site.zip folder/ # create zip
unzip site.zip -d /target/ # extract zip
Creates and unpacks the two most common archive formats.
Learn more on the blog
MySQL
Upgrade MySQL 8.0 to 8.4: What Breaks and How to Check
MySQL 8.0 reached end of life in April 2026, which means no...
7 min read
Linux
AWK gsub() Examples: Find and Replace Text in Linux
gsub() is AWK's find-and-replace. It replaces every match of a pattern in...
5 min read
Linux
AWK Remove Duplicates: Lines, Columns and CSV Rows
The shortest way to remove duplicate lines from a file in Linux...
5 min read