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 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.

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.

How to Change the Hostname in Linux
Change the hostname in Linux with hostnamectl and /etc/hosts. Covers permanent, temporary, cloud-init, and non-systemd methods.

curl POST Request Examples
Send data with curl -d, --json, and -F: POST examples for HTML forms, JSON APIs, file uploads, and reading the body from a file or stdin.

Sudo Command in Linux: Run Commands as Root
The sudo command runs programs as root or another user. This guide covers sudoers setup, root shells, sudoedit, credential caching, and common sudo options.

Series
Cheatsheets
cp Cheatsheet
Quick reference for copying files and directories with cp in Linux
Bash Cheatsheet
Quick reference for Bash shell scripting
awk Cheatsheet
Quick reference for the awk text processing command
grep Cheatsheet
Quick reference for the grep text search command




