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
Fix GRUB Rescue: Repair the GRUB Bootloader on Ubuntu
Stuck at the grub rescue> prompt? Boot Ubuntu from the rescue shell, then reinstall GRUB from the running system or a live USB on BIOS and UEFI machines.

apt Command in Linux
How to use apt on Ubuntu and Debian, from sudo apt update and apt install to upgrades, removals, searches, and fixes for common lock and package errors.

How to Read a File Line By Line in Bash
Read a file line by line in Bash with while and read, loop over lines with for and mapfile, load a file into a variable, and avoid common pitfalls.

Fix Docker "Error Getting Credentials"
Fix Docker's 'error getting credentials' message by checking config.json, repairing missing credential helpers, and resolving keyring or pass errors.

Docker: List Running and Stopped Containers
Use docker container ls and docker ps to list running and stopped containers, print names and IDs, filter results, and check Docker Compose projects.

How to Concatenate Strings in Bash
Concatenate strings in Bash by placing variables side by side, appending with +=, or formatting with printf -v. Covers loops, numbers, and sh scripts.

How to Check Your Debian Version: Commands and Release List
Debian 13 (trixie) is the current stable release. Check your version with /etc/os-release, lsb_release, or hostnamectl, plus codenames and support dates.

How to Check Your Ubuntu Version
Check which Ubuntu version you are running with lsb_release, /etc/os-release, or hostnamectl, plus a current release list up to Ubuntu 26.10.

How to Set Environment Variables in Linux
Set environment variables in Linux and Bash with export, list them with printenv, and make them permanent in ~/.bashrc, /etc/environment, or environment.d.

How to Undo and Redo in Vim / Vi
Undo and redo in Vim or Vi with u, Ctrl+r, :earlier, and :later. Covers time-based undo, undo branches, and persistent undo with undofile.

Series
Cheatsheets
traceroute and mtr Cheatsheet
Quick reference for traceroute, tracepath, and mtr: UDP, ICMP, and TCP probes, hop limits, output codes, mtr reports, and Windows tracert equivalents
.gitignore Cheatsheet
.gitignore pattern syntax at a glance: wildcards, directory rules, negation, anchoring, global ignore files, untracking committed files, and git check-ignore.
HTTP Status Codes Cheatsheet
HTTP status codes from 1xx to 5xx, common error causes, Nginx and Cloudflare codes, and curl and log commands for checking responses.
jq Cheatsheet
jq filter reference for selecting fields, filtering arrays with select, building objects, CSV and TSV output, shell variables, and editing JSON files.




