Practical Linux Tutorials and Command-Line Guides
Search hundreds of step-by-step tutorials for Bash, Ubuntu, networking, security, and more.
Featured Articles
Linuxize Weekly Newsletter
A quick weekly roundup of new tutorials, news, and tips.
Latest Articles
Bash case Statement: Match Patterns in Shell Scripts
The Bash case statement matches a value against a list of patterns and runs the corresponding block. This guide explains argument parsing, syntax, glob patterns, multiple matches, and fall-through behavior.

Linux Wildcards and Globbing Explained
How shell wildcards and globbing work in Linux: the *, ?, and [...] patterns, brace expansion, why globbing is not regex, and how to control it with quoting.

git diff Command: Compare Changes Between Commits and Branches
Use git diff to compare your working directory, staged files, commits, and branches, with practical examples of the options you will use most.

Bash Comparison Operators
Bash comparison operators compare numbers and strings with [ ], [[ ]], and (( )), including equal, not equal, greater-than, and pattern checks.

last Command in Linux: Check Login History
Use the last command in Linux to check login history, filter sessions by user or date, and audit system access. Also covers lastb for failed logins and lastlog for per-user login records.

What Is /dev/null in Linux
The Linux /dev/null device discards anything written to it and returns EOF when read. This guide shows how to silence stdout, stderr, cron output, and empty files.

How to Check Listening Ports in Linux: ss, netstat, lsof
Use ss, netstat, or lsof to list all listening ports in Linux, identify which process is using a specific port, and filter results by protocol or port number.

How to Unzip Files in Linux
Extract ZIP archives in Linux with the unzip command: unzip to a folder, handle password-protected and multiple archives, list or test contents, and exclude files.

How to Use Nano, the Linux Command Line Text Editor
Learn the essential nano commands and keyboard shortcuts: open, save, and exit files, search and replace text, copy and paste, and use sudo nano to edit system files.

Fix SSH "Host Key Verification Failed" Error
Resolve the SSH Host key verification failed error by removing the stale known_hosts entry with ssh-keygen -R after verifying the server is genuine.

Series
Cheatsheets
uniq Cheatsheet
Quick reference for filtering and counting duplicate lines with uniq in Linux
date Cheatsheet
Quick reference for the Linux date command covering display formats, format specifiers, relative dates, timezones, Unix timestamps, and setting the system clock.
PostgreSQL Cheatsheet
Quick reference for connecting to PostgreSQL, managing databases and roles, granting privileges, and running backup commands.
pip Cheatsheet
Quick reference for pip commands covering package installation, version constraints, requirements files, upgrades, virtual environments, and configuration.




