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

Bash Best Practices: Writing Safer, Cleaner Scripts
Practical Bash best practices for writing safer and more predictable scripts, covering strict mode, quoting, error handling, and everyday patterns.

How to List Groups in Linux
Find which groups a user belongs to in Linux using the groups, id, and getent commands. Includes how to list all groups and group members on the system.

How to Redirect stderr to stdout in Bash
Redirecting stderr and stdout in Bash using 2>&1, &>, and other operators. Covers file descriptors, appending, piping errors, and discarding output with /dev/null.

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




