Linux command examples
Use this path when you know the task but need the right command shape: flags, examples, expected output, common mistakes, and safer ways to run everyday shell workflows.
Curated guides
Linux command guides
87 matched guides, newest first. Page 1 of 8.

Linux du Command Examples for Disk Usage Analysis
Disk cleanup gets easier once you can answer two questions quickly: which path is largest, and whether that size belongs to real files, mounted filesystems, cache, logs, or...

Linux mv Command: Move and Rename Files and Directories
The Linux mv command is short for move, but it also handles the everyday rename work that keeps files and directories organized from the terminal. Use it to...

sed Command in Linux: Find and Replace Strings in Files
The Linux sed command handles repetitive text edits that are too small for a full script and too risky to do by hand. A single substitution can find...

traceroute Command in Linux With Examples
Network latency is easier to troubleshoot when you can see where packets stop answering instead of only knowing that a site feels slow. The traceroute command in Linux...

tar Command in Linux with Examples
Archive mistakes are noisy at best and destructive at worst: one tar command can list a bundle, create a backup, or overwrite files into the current directory. The...

systemctl Command in Linux With Examples
Service management gets risky when runtime state, boot enablement, logs, and unit files are treated as the same thing. The systemctl command in Linux separates those layers, so...

rsync Command in Linux with Examples
Repeated file copies get messy when only a few files change, a transfer is interrupted, or a destination should mirror the source exactly. The rsync command in Linux...

env Command in Linux: Environment Variables and Shebangs
Use env when a variable, PATH setting, or shebang works in your shell but fails in a child process; compare it with export and source, run clean command...

tee Command in Linux: Save Output to File and Screen
Pipeline output is easy to lose when you redirect it too early. The tee command in Linux keeps a copy visible on the terminal while saving the same...

tcpdump Command in Linux: Capture and Filter Packets
Packet captures answer questions that logs and port scans cannot: did the packet leave, did a reply come back, which interface saw it, and what did the protocol...

date Command in Linux: Format, Parse, and Convert Timestamps
Build reliable Linux timestamps for logs, filenames, scripts, and timezone conversions with date examples that show UTC output, epoch math, file times, parser debugging, and cleanup.

cp Command in Linux: Copy Files and Directories Safely
Copy files more safely with Linux cp examples that cover destinations, recursive directories, hidden files, overwrite controls, archive mode, symlinks, sparse files, and troubleshooting.