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 Add APT Repository in Ubuntu
Add APT repositories in Ubuntu using add-apt-repository, the signed-by method, and PPA. Includes the DEB822 format used by default on Ubuntu 24.04 and 26.04.

How to Create a File in Linux
Create a file in Linux from the command line with touch, redirection, cat, echo, printf, or a heredoc, and build large test files with fallocate, truncate, and dd.

nano Save and Exit: Save Files and Quit the Editor
Save and exit nano with Ctrl+O and Ctrl+X, save instantly with Ctrl+S, quit without saving, use a new filename, and fix permission errors.

How to Change a Git Commit Message, Even After Pushing
Change the last Git commit message with git commit --amend, reword older commits with an interactive rebase, and update commits you already pushed.

How to Mount ISO File on Linux
Mount an ISO file on Linux with the mount command and a loop device, attach it as a regular user with udisksctl, or extract its contents without mounting. Covers desktop file managers, other disk image formats, and fstab entries.

parted Command in Linux: Manage Disk Partitions
Use the parted command to inspect disks, create GPT partition tables, add aligned partitions, resize boundaries, and remove partitions safely on Linux.

How to Rename a Git Branch: Local and Remote
This guide shows how to rename a Git branch locally and on the remote using git branch -m, then push the new name and delete the old remote branch.

dig Command in Linux: DNS Lookup
The dig command is a DNS lookup tool for querying name servers. This guide covers querying record types, reverse lookups, tracing resolution paths, and verifying DNSSEC.

Bash Append to File: >>, tee, and Heredoc Examples
Append text to a file in Bash without erasing existing content. Covers >>, echo, printf, tee -a for protected files, and combining files.

500 Internal Server Error: What It Means & How to Fix It
A 500 Internal Server Error means the server encountered an unexpected condition. This guide explains common causes, how to diagnose the problem using log files, and steps to fix it.

Series
Cheatsheets
parted Cheatsheet
Quick reference for parted commands: inspect disks, create GPT and MBR tables, add aligned partitions, manage flags, resize boundaries, and remove partitions safely
nano Cheatsheet
Quick reference for Nano text editor shortcuts
cp Cheatsheet
Quick reference for copying files and directories with cp in Linux
Bash Cheatsheet
Quick reference for Bash shell scripting




