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

How to Generate SSH Keys on Linux with ssh-keygen
Generate an SSH key pair on Linux with ssh-keygen, choose between Ed25519 and RSA, and install the public key on a server, a Git host, or a cloud provider.

DNS Record Types Explained: A, AAAA, CNAME, MX, TXT, and More
DNS record types map domains to servers, route email, publish verification data, and control certificate issuance. See zone-file examples and dig queries.

How to Extract tar.xz Files in Linux
Extract .tar.xz and .txz archives in Linux with tar. Covers extracting to a directory, listing contents, decompressing plain .xz files with unxz, and installing software from a tar.xz download.

Initial Server Setup on Ubuntu 26.04
Prepare a new Ubuntu 26.04 server with a sudo user, SSH key authentication, UFW firewall rules, a hostname, timezone settings, and system updates.

Linux cp Command: Copy Files and Directories
The cp command copies files and directories in Linux. This guide covers recursive and archive copies, copying directory contents, overwrite control, and attributes.

How to Set Up Passwordless SSH Login
Set up passwordless SSH login with Ed25519 or RSA key pairs. Copy public keys with ssh-copy-id, use the ssh-agent, and disable password authentication for hardened access.

How to Use sed to Find and Replace Strings in Files
Replace strings in files with sed: run sed -i 's/old/new/g' file. Covers global, case-insensitive, word-boundary, regex, line-range, and recursive replace.

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




