Linux command examples - Page 2
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 2 of 8.

zip Command in Linux: Create, Update, and Test ZIP Archives
Create ZIP archives from Linux terminals without losing track of stored paths, hidden files, update behavior, or test results, with examples for exclusions, file lists, symlinks, cleanup, and...

sudo Command in Linux: Examples and Common Fixes
Handle sudo without turning every command into a root shell: verify access, run commands as another user, use sudoedit and sudo tee, protect scripts from password prompts, and...

dig Command in Linux: DNS Lookup Examples
When DNS behavior does not match expectations, dig shows the resolver response, record type, TTL, and status so you can compare caches, authoritative servers, DNSSEC, TCP fallback, and...

blkid Command in Linux: Find UUIDs, Labels, and Filesystem Types
When device names shift after reboot or hotplug, blkid helps confirm stable UUIDs, labels, types, and partition tags before fstab edits, mounts, recovery work, or disk cleanup.

cut Command in Linux: Extract Fields, Characters, and Bytes
Practice the cut command with tab, comma, colon, character, byte, and NUL-separated examples, then troubleshoot delimiters, empty fields, field order, CSV limits, and byte-vs-character behavior.

bzmore Command in Linux: View .bz2 Files One Screen at a Time
Page through bzip2-compressed logs and text exports with bzmore, then switch to bzgrep, bzcat, bzip2 -t, or tar when searching, scripting, validating, or inspecting archives.

bzgrep Command in Linux: Search .bz2 Files
Search compressed logs without unpacking them, learn when bzgrep should hand off to find or tar, and handle wrapper quirks such as missing aliases, -H labels, recursive searches,...

bzip2 Command in Linux: Compress, Decompress, and Test .bz2 Files
Practice bzip2 on disposable files before touching real backups, including keep-original compression, stdout pipelines, tar.bz2 archives, integrity tests, wrong-format checks, and recovery limits.

bzcat Command in Linux: Read .bz2 Files Without Extracting
Inspect compressed logs, SQL dumps, and text exports with bzcat without unpacking them first. The examples cover safe streams, redirection, grep/tail pipelines, integrity checks, and common bzip2 errors.

touch Command in Linux: Create Files and Set Timestamps
Timestamp-sensitive scripts behave better when you know how touch creates placeholder files, refreshes existing paths safely, sets repeatable dates, and avoids common permission or missing-directory mistakes.

chgrp Command in Linux: Change File Group Ownership
Fix group ownership without changing file owners: practice chgrp on safe files, preview recursive targets, handle symlinks deliberately, and know when chmod or ACLs are the better follow-up.

tr Command in Linux: Translate, Delete, and Squeeze Text
When text needs character-level cleanup, this tr command guide shows how to convert case, delete unwanted bytes, squeeze repeated spaces, repair CRLF endings, and avoid unsafe file redirects.