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
80 matched guides, best match first. Page 4 of 7.

ps Command in Linux With Examples
Process problems are easier to handle when you can freeze the current state before restarting a service or killing a PID. The ps command in Linux reports a...

nmcli Command in Linux With Examples
Network fixes get risky when interface state, saved profiles, DNS, routes, and Wi-Fi settings are treated as one layer. The nmcli command in Linux gives NetworkManager a terminal...

ls Command in Linux With Examples
Directory listings become more useful once you know which question ls is answering: names, hidden entries, long-format metadata, sort order, or the contents of a directory path. The...

less Command in Linux with Examples
Large log files and noisy command output are easier to inspect when the terminal becomes a pager instead of a flood. The less command in Linux opens files,...

kill Command in Linux With Examples
A stuck process is easier to handle when you send the right signal instead of reaching straight for a force kill. The kill command in Linux sends signals...

journalctl Command in Linux With Examples
Service failures are easier to diagnose when you can query the systemd journal by boot, unit, priority, time window, and message text instead of opening several log files...

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