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 Shebang: What #!/bin/bash Means in Shell Scripts
A Bash shebang tells Linux which interpreter runs a script. See what #!/bin/bash means, how /usr/bin/env bash differs, and what happens without #!.

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 access. Covers lastb, lastlog, and the wtmpdb replacement.

How to Use wget in Linux with Examples
Practical wget examples for downloading files, resuming transfers, limiting bandwidth, mirroring websites, and handling authentication on Linux.

How to List Users in Linux
List all users in Linux with getent passwd, lslogins, or /etc/passwd. Filter human users by UID, check group membership, and see who is logged in.

history Command in Linux: View and Manage Bash History
Use the history command in Linux to view, search, and clean up Bash command history. Covers expansions, HISTSIZE, HISTIGNORE, and security tips.

lsblk Command in Linux: List Block Devices
Use lsblk to list disks, partitions, filesystems, UUIDs, and mount points in Linux, then customize columns and produce JSON output for scripts.

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.

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.

How to Install Node.js and npm on Ubuntu 26.04
Install Node.js 24 LTS or the current Node.js 26 release on Ubuntu 26.04 using NodeSource, nvm, or the default Ubuntu packages.

su Command in Linux: How to Switch Users
Use the su command to switch users, open a root login shell, and run commands as another account. Includes options, sudo su, troubleshooting, and examples.

Series
Cheatsheets
wget Cheatsheet
Quick reference for downloading files and mirroring websites with wget
nmap Cheatsheet
Quick reference for host discovery, port scanning, and service detection with nmap in Linux
SFTP Cheatsheet
Quick reference for the Linux sftp client, covering login, navigation, transfers, and remote file management over SSH
cd Cheatsheet
Quick reference for changing directories with cd in Linux




