Linux command examples - Page 2
Find practical command examples with flags, expected output, common mistakes, and safer ways to run everyday shell workflows.
Curated guides
Linux command guides
80 matched guides, best match first. Page 2 of 7.

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.

bunzip2 Command in Linux: Decompress .bz2 Files
Restore bzip2-compressed files without losing the source copy by choosing the right bunzip2 pattern for .bz2 streams, tar.bz2 archives, stdin pipelines, batch restores, and common errors.

bzip2recover Command in Linux: Recover Damaged BZ2 Files
When a .bz2 file will not decompress, this workflow keeps the damaged source intact, splits recoverable blocks, tests each piece, and rebuilds usable text or tar data without...

dos2unix Command in Linux: Convert CRLF Line Endings
Fix Windows line endings without guessing: inspect CRLF files first, convert single or bulk text files safely, preserve timestamps when needed, and troubleshoot script or binary-skip surprises.

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.

nohup Command in Linux: Run Commands After Logout
Learn when nohup is enough for detached shell jobs, how to redirect logs and save PIDs, and when tmux, screen, or systemd is the safer choice for interactive...

expr Command in Linux: Math, Strings, Regex, and Exit Status
Older shell scripts still use expr for small calculations and string checks; trace its spacing, quoting, regex, and exit-status rules before choosing Bash arithmetic, awk, grep, or printf...

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.

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

wc Command in Linux: Count Lines, Words, and Bytes
Count text without guessing: the wc command guide explains how lines, words, bytes, characters, pipelines, NUL-safe file lists, totals, and newline edge cases behave in real shell workflows.

arp Command in Linux: View and Manage ARP Cache
Local IPv4 neighbor problems are easier to pin down when you can read the ARP cache, compare legacy arp output with ip neigh, and remove stale mappings without...