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
passwd Command in Linux: Change User Passwords
Change your own, another user's, or the root password in Linux with the passwd command. Covers password expiry with chage, forcing a change at next login, and account locking.

Linux Folder Size: How to Check File and Directory Sizes
Check folder and file sizes in Linux with du. Compare directory totals, rank subdirectories, exclude paths, and check free space with df.

How to Use OpenSSL: Generate Keys, Certificates, and Test TLS
Practical OpenSSL guide for Linux: generate private keys, create CSRs and self-signed certificates, convert formats, inspect certificates, and test TLS connections.

How to Generate a Random Password or String in Linux
Generate random passwords and strings in Linux with openssl rand, /dev/urandom, pwgen, and Python. Choose hex, Base64, URL-safe tokens, or passphrases.

How to Install Java on Ubuntu 26.04
Install OpenJDK 25, the Ubuntu 26.04 default, or Oracle JDK 25 and 27. Also covers other OpenJDK versions, switching between them, and JAVA_HOME.

apt vs apt-get: The Difference and When to Use Each
apt and apt-get are not the same tool: apt is built for interactive terminal use, apt-get for scripts and automation. Compare their commands and see when to use each.

Fix SSH "Too Many Authentication Failures" Error
Fix SSH 'Too many authentication failures' by selecting the right key with IdentitiesOnly, skipping keys for password login, and checking MaxAuthTries.

How to Change a Git Remote's URL
Change a Git remote URL with git remote set-url, switch between HTTPS and SSH, set separate push and fetch URLs, and verify the change.

Python Switch Case Statement (match-case)
Learn how to use Python's match-case statement (structural pattern matching) as a switch-case equivalent. Covers if-elif-else, dictionary lookup, and match-case with examples.

Fix "npm ERR! Missing Script: dev"
npm run dev fails with 'Missing script: dev' when package.json has no dev key. Find the script the project actually uses, or add one that starts its dev server.

Series
Cheatsheets
CIDR and Subnet Mask Cheatsheet
IPv4 CIDR prefix to subnet mask table from /0 to /32 with address and host counts, subnet boundaries, reserved ranges, IPv6 prefix sizes, and CIDR in Linux commands.
tr Cheatsheet
tr command reference for translating, deleting, and squeezing characters, with character classes, escape sequences, case conversion, and pipeline recipes.
Bash Parameter Expansion Cheatsheet
Bash parameter expansion syntax for default values, substrings, prefix and suffix removal, search and replace, case conversion, and arrays.
Bash Keyboard Shortcuts Cheatsheet
Bash keyboard shortcuts for editing commands, searching history, completing words, and controlling foreground jobs.




