Archiving & Compression in Linux: tar vs gzip vs xz vs zip Explained
Description:
Master Linux file archiving and compression with this practical guide. Learn when to use tar, gzip, bzip2, xz, and zip, compare their strengths, and discover the essential commands every Linux user should know.
https://www.linuxteck.com/archiving-and-compression-in-linux/
#Linux #LinuxCommands #DevOps #SysAdmin #LinuxTips #OpenSource #LinuxTeck
Description:
Master Linux file archiving and compression with this practical guide. Learn when to use tar, gzip, bzip2, xz, and zip, compare their strengths, and discover the essential commands every Linux user should know.
https://www.linuxteck.com/archiving-and-compression-in-linux/
#Linux #LinuxCommands #DevOps #SysAdmin #LinuxTips #OpenSource #LinuxTeck
Why Developers Trust Debian
Debian continues to power servers, cloud workloads, containers, and development environments because of its stability, long-term support, and predictable updates.
Read the complete guide:
https://www.linuxteck.com/why-developers-trust-debian-for-their-work/
#linuxteck #Debian #Linux #OpenSource #DevOps #SysAdmin
Debian continues to power servers, cloud workloads, containers, and development environments because of its stability, long-term support, and predictable updates.
Read the complete guide:
https://www.linuxteck.com/why-developers-trust-debian-for-their-work/
#linuxteck #Debian #Linux #OpenSource #DevOps #SysAdmin
Learn Hyprland the Easy Way
Want to start using Hyprland but don't know where to begin?
This practical guide walks through installation, configuration, keybindings, Lua support, and screen sharing so you can build your first productive Wayland desktop with confidence.
đź“– https://www.linuxteck.com/learn-hyprland-the-easy-way/
#linuxteck #Hyprland #Wayland #Linux #OpenSource #ArchLinux #Ubuntu
Want to start using Hyprland but don't know where to begin?
This practical guide walks through installation, configuration, keybindings, Lua support, and screen sharing so you can build your first productive Wayland desktop with confidence.
đź“– https://www.linuxteck.com/learn-hyprland-the-easy-way/
#linuxteck #Hyprland #Wayland #Linux #OpenSource #ArchLinux #Ubuntu
Quick Linux Tip #38
Question: How do I make my custom app automatically restart on crash?
Try:
Info:
Examples:
$
$
$
Note:
Follow @LinuxTeck for more #LinuxTips
Question: How do I make my custom app automatically restart on crash?
Try:
sudo systemctl edit --force --full myapp.serviceInfo:
Restart=on-failure restarts the app on non-zero exits/crashes, while RestartSec adds a delay before restarting. Use StartLimitBurst in [Unit] to prevent infinite crash loops.Examples:
$
sudo systemctl status myapp # View service status$
sudo journalctl -u myapp -f # Follow application logs in real-time$
sudo systemctl reset-failed myapp # Reset crash rate limitsNote:
Restart modes include no, always, on-failure, and on-abnormal. always triggers even on clean exits (0), whereas on-failure is recommended for standard services.Follow @LinuxTeck for more #LinuxTips
Master Linux Job Control
Working in the Linux terminal?
Learn how to use
A practical guide with real-world examples for Linux users and system administrators.
https://www.linuxteck.com/job-control-fg-bg-jobs/
#linuxteck #Linux #Bash #Shell #DevOps #OpenSource
Working in the Linux terminal?
Learn how to use
&, jobs, fg, bg, and Ctrl+Z to manage long-running commands without losing your workflow.A practical guide with real-world examples for Linux users and system administrators.
https://www.linuxteck.com/job-control-fg-bg-jobs/
#linuxteck #Linux #Bash #Shell #DevOps #OpenSource
Quick Linux Tip #40
Question: Which files changed during the incident window last Tuesday?
Try:
Info:
Examples:
$
$
$
Note: Supports natural language strings like
Follow @LinuxTeck for more #LinuxTips
Question: Which files changed during the incident window last Tuesday?
Try:
find /var/www -type f -newermt '2026-07-23 14:00:00' ! -newermt '2026-07-23 16:00:00'Info:
-newermt 'DATE' matches files modified AFTER a timestamp. Combined with ! -newermt, it isolates files modified BETWEEN two specific times—ideal for forensic analysis.Examples:
$
find / -newermt '1 hour ago' -type f 2>/dev/null # Modified in the last hour$
find /home -newermt yesterday ! -newermt today # Modified yesterday only$
find /etc -newermt '2026-07-01' ! -newermt '2026-07-31' -type f # Within date rangeNote: Supports natural language strings like
'yesterday', '1 hour ago', or 'last week'. You can also use -newerct (change time) or -neweramt (access time).Follow @LinuxTeck for more #LinuxTips
Quick Linux Tip #41
Question: How do I find duplicate files even if they have different names?
Try:
Info:
Examples:
$
$
$
Note: For large directories,
Follow @LinuxTeck for more #LinuxTips
Question: How do I find duplicate files even if they have different names?
Try:
find /home/linuxteck -type f -exec md5sum {} + | sort | uniq -w32 -DInfo:
md5sum hashes file contents, sort groups identical hashes, and uniq -w32 -D compares the 32-character hash to output all duplicate files.Examples:
$
find . -type f -exec md5sum {} + | sort | uniq -w32 -d # Show 1 sample per duplicate set$
fdupes -r /home/linuxteck # Dedicated tool (apt install fdupes)$
rdfind -deleteduplicates true /home/linuxteck # Auto-delete duplicates safelyNote: For large directories,
fdupes or rdfind are purpose-built and significantly faster. Use sha256sum instead of md5sum if collision risk is a concern.Follow @LinuxTeck for more #LinuxTips
❤1
Linux DNS Troubleshooting Made Easy
DNS failure on Linux? Start with evidence instead of restarting services.
This practical workflow covers connectivity,
Useful for Ubuntu, Rocky Linux, and RHEL admins.
Read the full guide : https://www.linuxteck.com/linux-dns-troubleshooting-made-easy/
#LinuxTeck #Linux #DNS #DevOps #SysAdmin #LinuxAdministration
DNS failure on Linux? Start with evidence instead of restarting services.
This practical workflow covers connectivity,
/etc/resolv.conf, dig, NSS lookup order, systemd-resolved, NetworkManager, containers, and automated DNS health checks.Useful for Ubuntu, Rocky Linux, and RHEL admins.
Read the full guide : https://www.linuxteck.com/linux-dns-troubleshooting-made-easy/
#LinuxTeck #Linux #DNS #DevOps #SysAdmin #LinuxAdministration
Quick Linux Tip #42
https://www.linuxteck.com/linux-tips/tee-command-linux/
Tip Question: How do I watch a long command run AND save its complete output?
Try:
Info:
Examples:
$
$
$
Note: Without
Follow @LinuxTeck for more #LinuxTips
https://www.linuxteck.com/linux-tips/tee-command-linux/
Tip Question: How do I watch a long command run AND save its complete output?
Try:
./deploy.sh 2>&1 | tee -a deploy.logInfo:
tee splits stdout to both terminal and file. 2>&1 redirects stderr into stdout first to capture error logs. -a appends output instead of overwriting.Examples:
$
./script.sh 2>&1 | tee output.log # Overwrite log with output + errors$
make 2>&1 | tee build.log | grep -E 'error|warning' # Log all, filter display$
sudo apt upgrade 2>&1 | tee -a /var/log/upgrades.log # Append system upgrade logNote: Without
2>&1, tee only captures standard output and misses error messages. Use tee -a when running repeated scripts to maintain a history.Follow @LinuxTeck for more #LinuxTips
LinuxTeck
Quick Linux Tip #42: How do I watch a long command run AND save its complete output? | LinuxTeck
Learn how to use the tee command in Linux to watch command output live while saving stdout and stderr to a log file.
❤1
Quick Linux Tip #43 https://www.linuxteck.com/linux-tips/linux-tips-sed-extract-text-between-markers/
Question: How do I extract config values from between BEGIN and END markers?
Try:
Info:
Examples:
$
$
$
Note: Range matching
Follow @LinuxTeck for more #LinuxTips click here- https://www.linuxteck.com/linux-tips/
Question: How do I extract config values from between BEGIN and END markers?
Try:
sed -n '/BEGIN CERTIFICATE/,/END CERTIFICATE/p' /etc/ssl/certs/server.crtInfo:
sed -n suppresses automatic printing. The pattern '/START/,/END/p' prints all lines between two matching delimiters (inclusive).Examples:
$
sed -n '/^\[database\]/,/^$/p' config.ini # Extract section until empty line$
awk '/BEGIN/,/END/' file.txt # Equivalent using awk$
sed -n '/ERROR/,+5p' logfile # Print ERROR line plus next 5 linesNote: Range matching
/X/,/Y/ works line-by-line from first match of X to next match of Y. The +N relative line count syntax is a GNU sed extension.Follow @LinuxTeck for more #LinuxTips click here- https://www.linuxteck.com/linux-tips/
Your DevOps Skills Aren’t Complete Without Networking
Caption:
A lot of “application problems” are actually networking problems. This guide covers a practical approach to troubleshooting DNS, routes, ports, firewalls, SSH, IPv6, and cloud networking on Linux.
Read the guide → https://www.linuxteck.com/networking-skills-for-devops/
#LinuxTeck
Caption:
A lot of “application problems” are actually networking problems. This guide covers a practical approach to troubleshooting DNS, routes, ports, firewalls, SSH, IPv6, and cloud networking on Linux.
Read the guide → https://www.linuxteck.com/networking-skills-for-devops/
#LinuxTeck
Quick Linux Tip #44 : https://www.linuxteck.com/linux-tips/linux-tips-check-tcp-packet-loss-ss/
Question: My connections feel unreliable. How do I check for hidden packet loss?
Try:
Info:
Examples:
$
$
$
Note: When retransmissions occur,
Follow @LinuxTeck for more #LinuxTips click here : https://www.linuxteck.com/linux-tips/
Question: My connections feel unreliable. How do I check for hidden packet loss?
Try:
ss -ti | grep -A3 'ESTAB' | head -20Info:
ss -ti dumps TCP internal metrics. Look for retrans:X/Y (X current retransmits, Y total) and rtt (round-trip time). Non-zero retransmits signal packet loss or network congestion.Examples:
$
ss -ti state established '( dport = :443 )' # Inspect HTTPS connections$
watch -n 1 'ss -s' # Monitor overall socket summary$
netstat -s | grep -i 'retrans\|reset' # Global TCP retransmission countersNote: When retransmissions occur,
cwnd (congestion window) shrinks automatically. Persistent retransmits across multiple endpoints point to network hardware issues rather than application bugs.Follow @LinuxTeck for more #LinuxTips click here : https://www.linuxteck.com/linux-tips/
Quick Linux Tip #45 - https://www.linuxteck.com/linux-tips/fix-windows-file-encoding-linux/
Question: My Windows files have wrong encoding on Linux. How do I fix them all?
Try:
Info:
Examples:
$
$
$
Note: Always test on a backup copy first! Use
Follow @LinuxTeck for more #LinuxTips click here : https://www.linuxteck.com/linux-tips/
Question: My Windows files have wrong encoding on Linux. How do I fix them all?
Try:
find . -name '*.txt' -exec sh -c 'iconv -f WINDOWS-1252 -t UTF-8 "$1" -o "$1.utf8" && mv "$1.utf8" "$1"' _ {} \;Info:
iconv converts text encodings (-f=from, -t=to). Wrapping in sh -c enables chaining iconv and mv per file. The _ acts as a placeholder for $0 in the subshell.Examples:
$
iconv -f UTF-16 -t UTF-8 windows.txt -o linux.txt # Convert single file$
iconv -l | grep -i utf # List all supported UTF encodings$
dos2unix *.txt # Fix CRLF line endings onlyNote: Always test on a backup copy first! Use
iconv -l to see all supported charsets. Use dos2unix if you only need to fix line endings (CRLF to LF).Follow @LinuxTeck for more #LinuxTips click here : https://www.linuxteck.com/linux-tips/
Quick Linux Tip #46 : https://www.linuxteck.com/linux-tips/lvm-snapshot-rollback-linux/
Question: I'm about to make risky changes. How do I create a rollback point?
Try:
Info: LVM snapshots freeze filesystem state instantly. They store only changed blocks post-creation, making 10G ideal for temporary changes. Merge to rollback.
Examples:
$
$
$
Note: Requires LVM or Btrfs. Copy-on-write introduces a slight write penalty. Merging a root filesystem snapshot requires a system reboot. Perfect before major upgrades.
Follow @LinuxTeck for more #LinuxTips click here :https://www.linuxteck.com/linux-tips/
Question: I'm about to make risky changes. How do I create a rollback point?
Try:
sudo lvcreate --snapshot --name pre_upgrade_snap --size 10G /dev/ubuntu-vg/rootInfo: LVM snapshots freeze filesystem state instantly. They store only changed blocks post-creation, making 10G ideal for temporary changes. Merge to rollback.
Examples:
$
sudo lvcreate -s -n snap1 -L 5G /dev/vg0/mysql # Create MySQL snapshot$
sudo lvremove /dev/vg0/snap1 # Discard snapshot without merging$
sudo btrfs subvolume snapshot /home /home.snap # Btrfs alternativeNote: Requires LVM or Btrfs. Copy-on-write introduces a slight write penalty. Merging a root filesystem snapshot requires a system reboot. Perfect before major upgrades.
Follow @LinuxTeck for more #LinuxTips click here :https://www.linuxteck.com/linux-tips/
Quick Linux Tip #47 : https://www.linuxteck.com/linux-tips/recover-deleted-files-linux/
Question: I deleted a file 5 minutes ago and there's no backup. Can I recover?
Try:
Info:
Examples:
$
$
$
Note: Stop writing to the partition immediately after deletion to prevent overwriting raw blocks.
Follow @LinuxTeck for more #LinuxTips click here : https://www.linuxteck.com/linux-tips/
Question: I deleted a file 5 minutes ago and there's no backup. Can I recover?
Try:
sudo debugfs -R 'lsdel' /dev/sda1 | tail -20Info:
debugfs is a low-level ext filesystem tool. lsdel lists deleted inodes, and dump <inode> <file> restores content. Works only if blocks haven't been overwritten yet.Examples:
$
sudo debugfs /dev/sda1 # Interactive filesystem mode$
sudo extundelete --restore-all /dev/sda1 # Automated bulk recovery tool$
sudo photorec # Universal block recovery across any filesystemNote: Stop writing to the partition immediately after deletion to prevent overwriting raw blocks.
debugfs is specific to ext2/3/4.Follow @LinuxTeck for more #LinuxTips click here : https://www.linuxteck.com/linux-tips/
Verpex Review 2026: What You Need to Know
We went beyond the promotional price and tested what Verpex is actually like to use.
Performance, load testing, migrations, support, security, pricing, renewal costs, and plan limitations are all covered in this 2026 review.
Verdict: Yes, for the right buyer.
Read the review → https://www.linuxteck.com/guides/verpex-reviews/
#LinuxTeck #Verpex #WebHosting #Linux
We went beyond the promotional price and tested what Verpex is actually like to use.
Performance, load testing, migrations, support, security, pricing, renewal costs, and plan limitations are all covered in this 2026 review.
Verdict: Yes, for the right buyer.
Read the review → https://www.linuxteck.com/guides/verpex-reviews/
#LinuxTeck #Verpex #WebHosting #Linux
Quick Linux Tip #48 :https://www.linuxteck.com/linux-tips/python-http-server-linux/
Question: How do I quickly share files across my network without setting up nginx?
Try:
Info: Python's built-in HTTP server serves the current working directory over HTTP.
Examples:
$
$
$
Note: Never use in production—it lacks authentication, HTTPS, and multi-threading. Press
Follow @LinuxTeck for more #LinuxTips click here :https://www.linuxteck.com/linux-tips/
Question: How do I quickly share files across my network without setting up nginx?
Try:
python3 -m http.server 8080 --bind 0.0.0.0Info: Python's built-in HTTP server serves the current working directory over HTTP.
--bind 0.0.0.0 makes it reachable across all network interfaces on port 8080.Examples:
$
cd /path/to/share && python3 -m http.server 8000 # Share specific directory$
python3 -m http.server 8080 --directory /var/www/public # Set dir without cd$
npx http-server -p 8080 # Node.js alternativeNote: Never use in production—it lacks authentication, HTTPS, and multi-threading. Press
Ctrl+C to stop. Check your firewall settings (ufw) if connection times out.Follow @LinuxTeck for more #LinuxTips click here :https://www.linuxteck.com/linux-tips/
Zsh vs Fish: Which Linux Shell Is Better?
Zsh or Fish? This practical Linux comparison breaks down the key differences between the two popular Bash alternatives.
Learn about POSIX compatibility, startup performance, scripting, customization, plugins, learning curve, ecosystem, and real-world use cases. Find out when Fish makes sense, when Zsh is the safer choice, and why Bash or sh still matters for portable automation.
Read the complete : https://www.linuxteck.com/zsh-vs-fish/
#LinuxTeck #Linux #Zsh #FishShell #Bash #LinuxTips #DevOps #SysAdmin #LinuxLearning
Zsh or Fish? This practical Linux comparison breaks down the key differences between the two popular Bash alternatives.
Learn about POSIX compatibility, startup performance, scripting, customization, plugins, learning curve, ecosystem, and real-world use cases. Find out when Fish makes sense, when Zsh is the safer choice, and why Bash or sh still matters for portable automation.
Read the complete : https://www.linuxteck.com/zsh-vs-fish/
#LinuxTeck #Linux #Zsh #FishShell #Bash #LinuxTips #DevOps #SysAdmin #LinuxLearning
Quick Linux Tip #49 : https://www.linuxteck.com/linux-tips/compare-config-files-linux-servers/
Question: How do I check if a config file differs between two servers?
Try: diff <(ssh linuxteck@server1 cat /etc/nginx/nginx.conf) <(ssh linuxteck@server2 cat /etc/nginx/nginx.conf)
Info: Process substitution <() combined with SSH pipes file contents directly to diff. No temp files needed. Great for verifying config parity across servers.
Examples:
$ diff <(ssh s1 'rpm -qa | sort') <(ssh s2 'rpm -qa | sort')
$ diff <(ssh s1 'systemctl list-units --state=running') <(ssh s2 'systemctl list-units --state=running')
$ colordiff <(ssh s1 cat /etc/hosts) <(ssh s2 cat /etc/hosts)
Note: Requires SSH key auth (no password prompts). Use with ControlMaster (Tip #16) for speed. colordiff makes output much easier to read.
Follow @LinuxTeck for more #LinuxTips click here https://www.linuxteck.com/linux-tips/
Question: How do I check if a config file differs between two servers?
Try: diff <(ssh linuxteck@server1 cat /etc/nginx/nginx.conf) <(ssh linuxteck@server2 cat /etc/nginx/nginx.conf)
Info: Process substitution <() combined with SSH pipes file contents directly to diff. No temp files needed. Great for verifying config parity across servers.
Examples:
$ diff <(ssh s1 'rpm -qa | sort') <(ssh s2 'rpm -qa | sort')
$ diff <(ssh s1 'systemctl list-units --state=running') <(ssh s2 'systemctl list-units --state=running')
$ colordiff <(ssh s1 cat /etc/hosts) <(ssh s2 cat /etc/hosts)
Note: Requires SSH key auth (no password prompts). Use with ControlMaster (Tip #16) for speed. colordiff makes output much easier to read.
Follow @LinuxTeck for more #LinuxTips click here https://www.linuxteck.com/linux-tips/
DNF vs APT: What actually makes them different?
Most comparisons stop at “APT is for Debian and DNF is for Red Hat.”
This guide goes deeper into how their dependency resolvers behave, DNF5's transaction model, APT's flexibility, rollback differences, automation, and the commands you'll actually use.
đź”— https://www.linuxteck.com/dnf-vs-apt/
#LinuxTeck #Linux #DNF #APT
Most comparisons stop at “APT is for Debian and DNF is for Red Hat.”
This guide goes deeper into how their dependency resolvers behave, DNF5's transaction model, APT's flexibility, rollback differences, automation, and the commands you'll actually use.
đź”— https://www.linuxteck.com/dnf-vs-apt/
#LinuxTeck #Linux #DNF #APT
Quick Linux Tip #50 : https://www.linuxteck.com/linux-tips/find-file-by-inode-number-linux/
Question: I have a file's inode but not its path. How do I find it?
Try:
Info: Every file has a unique inode per filesystem. Running
Examples:
$
$
$
Note: Hardlinks share the exact same inode number; symlinks do not. Files are deleted only when their link count drops to 0.
Follow @LinuxTeck for more #LinuxTips click here : https://www.linuxteck.com/linux-tips/
Question: I have a file's inode but not its path. How do I find it?
Try:
sudo find / -inum 524290 2>/dev/nullInfo: Every file has a unique inode per filesystem. Running
find -inum locates all directory entries pointing to that specific inode number.Examples:
$
find / -inum 524290 2>/dev/null # Find file by inode number$
ls -i file.txt # Display inode number for a file$
find /home -samefile /home/linuxteck/original.txt # Find all matching hardlinksNote: Hardlinks share the exact same inode number; symlinks do not. Files are deleted only when their link count drops to 0.
Follow @LinuxTeck for more #LinuxTips click here : https://www.linuxteck.com/linux-tips/