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
How to Run Sudo Command Without Password
Configure the sudoers file or a drop-in file in /etc/sudoers.d to let a user or group run sudo commands without a password prompt.

How to Install and Use uv: Fast Python Package Manager
Install uv on Ubuntu, Debian, and other Linux distributions, then use it to create projects, add dependencies, manage virtual environments, and install Python versions.

How to Add User to Sudoers in Debian
Grant sudo privileges in Debian by adding a user to the sudo group or configuring a custom sudoers rule with visudo. Covers Debian 12 and 13.

How to Add a User to Sudoers in Ubuntu
Grant sudo privileges in Ubuntu by adding a user to the sudo group or editing the sudoers file. Step-by-step examples and common errors.

How to Enable SSH on Ubuntu
Enable SSH on Ubuntu by installing OpenSSH Server, checking the correct systemd unit, allowing it through UFW, and connecting from Linux, macOS, or Windows.

How to Fix APT and dpkg Lock Errors on Ubuntu and Debian
Resolve APT and dpkg lock errors safely on Ubuntu and Debian by finding the process holding the lock and repairing interrupted package operations.

How to Start, Stop, and Restart Apache on Linux
Manage the Apache web server with systemctl on Ubuntu, Debian, Fedora, and RHEL. Covers start, stop, restart, reload, status, enable on boot, and config testing.

Bash For Loop: Syntax and Examples
A complete guide to the Bash for loop: standard syntax, C-style loops, arrays, ranges, break and continue, and real-world scripting examples.

How to Start, Stop, or Restart Nginx
Learn how to start, stop, restart, and reload Nginx using systemctl on Linux. Includes the reload vs restart difference, configuration testing, and autostart setup.

vmstat Command in Linux: Memory, CPU, and I/O Statistics
Use vmstat to monitor Linux CPU, memory, swap, processes, and disk I/O. This guide explains each column, live sampling, timestamps, and disk statistics.

Series
Cheatsheets
PHP Cheatsheet
PHP 8 quick reference for syntax, arrays, functions, classes, request data, files, JSON, exceptions, CLI commands, Composer, configuration, and PHP-FPM.
DNF Cheatsheet
Quick reference for package management with dnf on Fedora, RHEL, and derivatives
wc Cheatsheet
Quick reference for counting lines, words, bytes, characters, and longest line length with wc in Linux
reboot Cheatsheet
Quick reference for rebooting and scheduling restarts on Linux




