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

gzip Command in Linux with Examples
Compressed logs, transfer bundles, and database dumps are easier to move when the compression step does not destroy the only readable copy. The gzip command in Linux works...

find Command in Linux with Examples
Large Linux filesystems rarely fail because files are impossible to locate; they fail because the search is too broad, too noisy, or too risky to act on. The...

gunzip Command in Linux With Examples
Restoring a gzip-compressed log, dump, or downloaded file is easy to rush because gunzip removes the .gz input after a successful decompression. The gunzip command in Linux is...

fdisk Command in Linux With Examples
Partition-table mistakes are expensive because they can make a disk unbootable, hide data, or point formatting tools at the wrong device. The fdisk command in Linux edits GPT...

export Command in Linux with Examples
Most export mistakes happen at process boundaries: a value works in your terminal but disappears in a child script, sudo command, cron job, or new shell. The export...

echo Command in Linux With Examples
Short status messages, prompts, and quick pipeline input usually start with the echo command in Linux because it is available in every normal shell session. The catch is...

df Command in Linux With Examples
Disk-full alerts are easier to handle when you can separate filesystem capacity from directory growth. The df command in Linux reports used space, available space, mount points, filesystem...

chown Command in Linux with Examples
Ownership problems can make a file look correctly permissioned while the wrong account still controls it. The chown command in Linux changes the user and group attached to...

cat Command in Linux With Examples
Small text files are fastest to inspect when you can read them without opening an editor, but cat is more than a quick viewer. The cat command in...

awk Command in Linux With Examples
Delimited text becomes easier to work with when each column, line range, or repeated value can be tested directly. The awk command in Linux reads input record by...

bzdiff Command in Linux with Examples
Comparing old log snapshots or configuration exports gets awkward when the files are still compressed with bzip2. The bzdiff command in Linux compares the decompressed content of .bz2...

bg Command in Linux with Examples
A stopped terminal job does not need to block your shell forever. The bg command in Linux resumes a suspended job in the background, which is useful when...