morekits.com
Content ToolsNEWImage ToolsNEWTime ToolsHOTFinance ToolsHOTWeb & Dev ToolsUtility Tools
morekits.com

Free, privacy-first online tools for content, time, finance, and web tasks. Fast, secure, and 100% client-side.

Categories

Content ToolsImage ToolsTime ToolsFinance ToolsWeb & Dev ToolsUtility ToolsReferences

Popular Tools

Text ComparisonCompound Interest CalculatorTime ConverterWorld ClockPrepayment CalculatorNumber (Amount) to Chinese UppercaseWiFi QR GeneratorImage WatermarkLPR Interest RateCountry CodesCurrency Codes

More

TutorialsAll ToolsTagsChangelog

© 2026 morekits.com. All rights reserved.

About UsLegal & TermsContact
  1. Tutorials
  2. Common Linux Commands for Beginners and Pros
References

Common Linux Commands for Beginners and Pros

Files, processes, networking, and text manipulation — the Linux commands you reach for in production triage, with the flag combos that separate intermediate from expert.

MoreKits Team
2025-12-29
3 minutes read
Common Linux Commands for Beginners and Pros
Related tools

More utilities that pair well with this guide:

  • Linux Command
  • Git Command
  • Text Comparison
  • IP Lookup
  • HTTP Status
  • Code Formatter

Why this matters

A web service is suddenly returning 502s. The on-call engineer SSHes into the box. From here, ten minutes of well-targeted shell commands surface the problem: a runaway process eating memory, a full disk, or a flapping outbound connection. The same commands solve mundane daily tasks too — finding files, comparing logs, monitoring tail latency. Mastery of a small set of commands compounds.

Three real scenarios

SRE on call
Find the process eating memory

top → notice the offender → ps auxf | grep <pid> for parents → lsof -p <pid> for open files.

Kill, rotate, fix

Backend Developer
Locate every TODO across the repo

grep -rn "TODO" --include="*.ts" .

Sprint planning input

Data Engineer
Stream a 200 MB log and grep specific patterns

tail -F app.log | grep --line-buffered ERROR | tee errors-today.log

No load times

Walkthrough — using the reference

Open the Linux command reference.

  1. 1

    Browse by category

    Files & directories, processes & resources, networking, text processing, archives, package management, permissions.

  2. 2

    Search by keyword

    "logs", "ssl", "open ports", "users" — full-text search across descriptions.

  3. 3

    Read the canonical example

    Each entry has a one-line "minimum useful invocation" and an "expert combo" with multiple flags.

  4. 4

    Copy and adapt

    Each example lives in a copy block; replace the placeholder file/host/process before running.

  5. 5

    Mind the destructive verbs

    rm -rf, dd, mkfs, chmod -R, kill -9 are flagged with a warning badge.

Quickly find files containing a string

Goal

Find every file under /etc that contains "max_connections".

Command

sudo grep -rn "max_connections" /etc 2>/dev/null
Show the top 10 largest files in a directory

Goal

What is taking up disk space here?

Command

du -ah . 2>/dev/null | sort -hr | head -n 10
Linux command reference with categories and a search bar
Categorized like the day-to-day mental model: files, processes, network, text.

Power tips

  • !! repeats the previous command (sudo !! re-runs with sudo when you forget).
  • Ctrl-R searches your shell history; type a fragment, hit Enter.
  • Combine grep, awk, sort, uniq -c to derive counts from any text stream — no Excel needed.
  • tldr <cmd> (install via npm i -g tldr) gives terse, example-first man pages. Pair it with this reference.

Common pitfalls

Common mistake

Most security incidents in junior administration trace to this. Use principle-of-least-privilege; debug with ls -l and a focused chmod.

Common mistake

Locale issues mangle non-ASCII output

LC_ALL=C grep is faster but loses Unicode awareness. For human-readable file content, keep the system locale.

Common mistake

Quoting with single vs double quotes

Double quotes expand $VARS; single quotes don't. A common bug: grep "$pattern" file works as expected; grep '$pattern' file searches for the literal string.

When this is the wrong tool

  • Cross-platform scripts that must run on Windows — PowerShell or a portable Python is more universal.
  • Heavy data wrangling beyond a few hundred MB — load into a real database or use pandas/duckdb for proper analytics.
  • Long-running orchestration — systemd / supervisord / Kubernetes; not a one-shot shell command.

FAQ

bash vs zsh vs fish?

For scripts, bash for portability. For interactive use, zsh (with oh-my-zsh) or fish for sane defaults. Pick one and learn its keybindings well.

Why does my command work locally but not in cron?

cron has a minimal environment. Always specify full paths (/usr/bin/python3 not python3) and avoid relying on ~/.bashrc-defined aliases.

Do I need to memorize every flag?

No. Learn the verbs and the most useful 2-3 flags each; consult the reference for the rest. Fluency beats memorization.

Next steps

  1. Pair shell sessions with the Git command reference.
  2. Look up HTTP status codes returned by curl at the HTTP status reference.
  3. Resolve hostnames returned in lsof output via the IP lookup tool.

Ready to try it out?

Jump straight into the tool and see it in action.