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 Edit Your Hosts File on Linux, Windows, and macOS
The hosts file maps domain names to IP addresses locally, overriding DNS. This guide explains how to edit /etc/hosts on Linux, macOS, and Windows with examples for testing, blocking, and local development.

shutdown Command in Linux: Power Off, Reboot, and Schedule
How to use the shutdown command in Linux to power off, halt, or reboot the system immediately or at a scheduled time, with examples of all common options.

How to Check if a Command Exists in Bash
Check whether a command exists in Bash with command -v, capture its path, validate several dependencies, and compare type, hash, and which.

setuid, setgid, and the Sticky Bit Explained
Understand the setuid, setgid, and sticky bit special permissions in Linux: what each one does on files and directories, how to set them, and the security risks.

Delete Files and Directories in Python: os, pathlib, and shutil
How to delete single files, match and remove files by pattern, and remove directories in Python using the os, pathlib, and shutil modules.

How to Rename Files and Directories in Linux
Rename files and directories in Linux using mv for single renames and rename for batch filename changes, including extension changes, case conversion, and safe previews.

modprobe Command in Linux: Load and Manage Kernel Modules
Manage Linux kernel modules with modprobe: load, unload, blacklist, and configure module parameters. Includes syntax, practical examples, and troubleshooting.

How to Set Git Username and Email with git config
Set Git username and email with git config, both globally and per repository, check the current values, and update existing settings.

GitHub CLI: Manage Repositories, Issues, and Pull Requests
Use GitHub CLI to create and clone repositories, manage pull requests and issues, inspect workflow runs, publish releases, and call the GitHub API.

How to Comment in Python
Comments make Python code easier to read and maintain. This guide explains how to write single-line comments, multiline comments, docstrings, and the shebang line.

Series
Cheatsheets
date Cheatsheet
Quick reference for the Linux date command covering display formats, format specifiers, relative dates, timezones, Unix timestamps, and setting the system clock.
PostgreSQL Cheatsheet
Quick reference for connecting to PostgreSQL, managing databases and roles, granting privileges, and running backup commands.
pip Cheatsheet
Quick reference for pip commands covering package installation, version constraints, requirements files, upgrades, virtual environments, and configuration.
cut Cheatsheet
Quick reference for extracting fields, bytes, and characters with cut in Linux




