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
Linux cp Command: Copy Files and Directories
The cp command copies files and directories in Linux. This guide covers recursive and archive copies, directory contents, overwrite control, and attributes.

Fix "Cannot Connect to the Docker Daemon" Error
Fix Docker daemon connection errors on Linux. Check which socket Docker is using, see why the service failed, and fix permission or context errors.

How to Remove a User in Linux
Remove a user in Linux with userdel, including the home directory, active sessions, scheduled jobs, SELinux mappings, and files left behind.

smartctl Command in Linux: Check Disk Health with SMART
Use smartctl in Linux to check SMART health, read disk attributes, run self-tests, troubleshoot USB enclosures, and monitor NVMe wear.

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.

Fix npm E401: Unable to Authenticate
npm E401 means the registry rejected your credentials. Fix expired or revoked tokens, registry and scope mismatches, and broken .npmrc auth entries.

echo Command in Linux: Print Text and Variables
Print text, variables, script arguments, and exit codes with echo in Linux, plus escape sequences, colored output, and the quoting pitfalls to avoid.

whoami Command in Linux: Display the Current User Name
The whoami command prints the effective user name on Linux. Covers sudo and su, root checks in scripts, and how it compares to id -un, $USER, and logname.

Ubuntu Release Cycle: LTS, Interim, and Point Releases Explained
Ubuntu release dates and support timelines for LTS and interim versions. See what 26.04.1 changes, how long Ubuntu Pro extends support, and when to upgrade.

How to Remove a Symbolic Link (Symlink) in Linux
Remove symbolic links in Linux with rm, unlink, or find. Clean up broken symlinks and avoid the trailing-slash trap that can remove target directory contents.

Series
Cheatsheets
printf Cheatsheet
printf reference for Bash: format specifiers, flags, width and precision, escape sequences, %(fmt)T dates, padded columns, and common errors.
su Cheatsheet
Quick reference for switching users and running commands with su in Linux
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.




