Linux Commands illustration

computer

Linux Commands

Detailed searchable Linux command reference with syntax, examples, administration, networking, Bash, security and troubleshooting.

← Computer Learning Hub
πŸ–₯️

REFERENCE Β· 38 ITEMS

Linux Commands

Linux command reference from navigation to administration, networking, security and Bash.

38 items across 4 sections

COMPLETE COURSE

Linux Commands β€” Learning Path

4 modules

Start with the concept, study each lesson, copy and adapt the example, complete the practice task, then use the troubleshooting and safety notes before moving forward.

Module 01 β€” Navigation

What you learn: pwd, ls, cd, mkdir, touch, cp, mv, rm.

Deep study guide

Syntax β†’ options/arguments β†’ streams β†’ pipes/redirection β†’ exit codes. Re-run small commands and inspect output after every step.

Method: identify the starting state β†’ perform one controlled action β†’ observe the result β†’ compare it with the expected result β†’ document what changed.

pwd

What: Linux command pwd: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check pwd --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study pwd in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

Why it matters: Connect this skill to the module goal, identify its inputs and expected output, and note what could go wrong if the wrong target, permission, format or context is used.

How to learn it: Observe the starting state β†’ perform the smallest safe example β†’ inspect the result β†’ change one variable β†’ repeat and explain the difference.

Example: pwd

Professional check: verify the result independently instead of assuming a command, shortcut or setting succeeded.

ls

What: Linux command ls: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check ls --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study ls in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

Why it matters: Connect this skill to the module goal, identify its inputs and expected output, and note what could go wrong if the wrong target, permission, format or context is used.

How to learn it: Observe the starting state β†’ perform the smallest safe example β†’ inspect the result β†’ change one variable β†’ repeat and explain the difference.

Example: ls -la

Professional check: verify the result independently instead of assuming a command, shortcut or setting succeeded.

cd

What: Linux command cd: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check cd --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study cd in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

Why it matters: Connect this skill to the module goal, identify its inputs and expected output, and note what could go wrong if the wrong target, permission, format or context is used.

How to learn it: Observe the starting state β†’ perform the smallest safe example β†’ inspect the result β†’ change one variable β†’ repeat and explain the difference.

Example: cd ~/Documents

Professional check: verify the result independently instead of assuming a command, shortcut or setting succeeded.

mkdir

What: Linux command mkdir: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check mkdir --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study mkdir in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

Why it matters: Connect this skill to the module goal, identify its inputs and expected output, and note what could go wrong if the wrong target, permission, format or context is used.

How to learn it: Observe the starting state β†’ perform the smallest safe example β†’ inspect the result β†’ change one variable β†’ repeat and explain the difference.

Example: mkdir new-folder

Professional check: verify the result independently instead of assuming a command, shortcut or setting succeeded.

touch

What: Linux command touch: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check touch --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study touch in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

Why it matters: Connect this skill to the module goal, identify its inputs and expected output, and note what could go wrong if the wrong target, permission, format or context is used.

How to learn it: Observe the starting state β†’ perform the smallest safe example β†’ inspect the result β†’ change one variable β†’ repeat and explain the difference.

Example: touch notes.txt

Professional check: verify the result independently instead of assuming a command, shortcut or setting succeeded.

cp

What: Linux command cp: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check cp --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study cp in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

Why it matters: Connect this skill to the module goal, identify its inputs and expected output, and note what could go wrong if the wrong target, permission, format or context is used.

How to learn it: Observe the starting state β†’ perform the smallest safe example β†’ inspect the result β†’ change one variable β†’ repeat and explain the difference.

Example: cp source.txt backup.txt

Professional check: verify the result independently instead of assuming a command, shortcut or setting succeeded.

mv

What: Linux command mv: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check mv --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study mv in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

Why it matters: Connect this skill to the module goal, identify its inputs and expected output, and note what could go wrong if the wrong target, permission, format or context is used.

How to learn it: Observe the starting state β†’ perform the smallest safe example β†’ inspect the result β†’ change one variable β†’ repeat and explain the difference.

Example: mv old.txt archive/

Professional check: verify the result independently instead of assuming a command, shortcut or setting succeeded.

rm

What: Linux command rm: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check rm --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study rm in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

Why it matters: Connect this skill to the module goal, identify its inputs and expected output, and note what could go wrong if the wrong target, permission, format or context is used.

How to learn it: Observe the starting state β†’ perform the smallest safe example β†’ inspect the result β†’ change one variable β†’ repeat and explain the difference.

Example: rm -i file.txt

Professional check: verify the result independently instead of assuming a command, shortcut or setting succeeded.

Practice lab

Take one item from this module, reproduce the example in a safe environment, change one variable, record the result, and explain why the result changed.

Checkpoint

Before continuing, you should be able to explain the purpose, perform the basic workflow, recognize one common mistake, and describe how you would troubleshoot an unexpected result.

Module 02 β€” Text/search

What you learn: cat, less, head, tail, grep, find, sort, uniq, sed, awk.

Deep study guide

Syntax β†’ options/arguments β†’ streams β†’ pipes/redirection β†’ exit codes. Re-run small commands and inspect output after every step.

Method: identify the starting state β†’ perform one controlled action β†’ observe the result β†’ compare it with the expected result β†’ document what changed.

cat

What: Linux command cat: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check cat --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study cat in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

Why it matters: Connect this skill to the module goal, identify its inputs and expected output, and note what could go wrong if the wrong target, permission, format or context is used.

How to learn it: Observe the starting state β†’ perform the smallest safe example β†’ inspect the result β†’ change one variable β†’ repeat and explain the difference.

Example: cat notes.txt

Professional check: verify the result independently instead of assuming a command, shortcut or setting succeeded.

less

What: Linux command less: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check less --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study less in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

Why it matters: Connect this skill to the module goal, identify its inputs and expected output, and note what could go wrong if the wrong target, permission, format or context is used.

How to learn it: Observe the starting state β†’ perform the smallest safe example β†’ inspect the result β†’ change one variable β†’ repeat and explain the difference.

Example: less

Professional check: verify the result independently instead of assuming a command, shortcut or setting succeeded.

head

What: Linux command head: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check head --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study head in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

Why it matters: Connect this skill to the module goal, identify its inputs and expected output, and note what could go wrong if the wrong target, permission, format or context is used.

How to learn it: Observe the starting state β†’ perform the smallest safe example β†’ inspect the result β†’ change one variable β†’ repeat and explain the difference.

Example: head

Professional check: verify the result independently instead of assuming a command, shortcut or setting succeeded.

tail

What: Linux command tail: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check tail --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study tail in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

Why it matters: Connect this skill to the module goal, identify its inputs and expected output, and note what could go wrong if the wrong target, permission, format or context is used.

How to learn it: Observe the starting state β†’ perform the smallest safe example β†’ inspect the result β†’ change one variable β†’ repeat and explain the difference.

Example: tail

Professional check: verify the result independently instead of assuming a command, shortcut or setting succeeded.

grep

What: Linux command grep: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check grep --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study grep in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

Why it matters: Connect this skill to the module goal, identify its inputs and expected output, and note what could go wrong if the wrong target, permission, format or context is used.

How to learn it: Observe the starting state β†’ perform the smallest safe example β†’ inspect the result β†’ change one variable β†’ repeat and explain the difference.

Example: grep -n "error" app.log

Professional check: verify the result independently instead of assuming a command, shortcut or setting succeeded.

find

What: Linux command find: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check find --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study find in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

Why it matters: Connect this skill to the module goal, identify its inputs and expected output, and note what could go wrong if the wrong target, permission, format or context is used.

How to learn it: Observe the starting state β†’ perform the smallest safe example β†’ inspect the result β†’ change one variable β†’ repeat and explain the difference.

Example: find . -name "*.txt"

Professional check: verify the result independently instead of assuming a command, shortcut or setting succeeded.

sort

What: Linux command sort: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check sort --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study sort in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

Why it matters: Connect this skill to the module goal, identify its inputs and expected output, and note what could go wrong if the wrong target, permission, format or context is used.

How to learn it: Observe the starting state β†’ perform the smallest safe example β†’ inspect the result β†’ change one variable β†’ repeat and explain the difference.

Example: sort

Professional check: verify the result independently instead of assuming a command, shortcut or setting succeeded.

uniq

What: Linux command uniq: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check uniq --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study uniq in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

Why it matters: Connect this skill to the module goal, identify its inputs and expected output, and note what could go wrong if the wrong target, permission, format or context is used.

How to learn it: Observe the starting state β†’ perform the smallest safe example β†’ inspect the result β†’ change one variable β†’ repeat and explain the difference.

Example: uniq

Professional check: verify the result independently instead of assuming a command, shortcut or setting succeeded.

sed

What: Linux command sed: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check sed --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study sed in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

Why it matters: Connect this skill to the module goal, identify its inputs and expected output, and note what could go wrong if the wrong target, permission, format or context is used.

How to learn it: Observe the starting state β†’ perform the smallest safe example β†’ inspect the result β†’ change one variable β†’ repeat and explain the difference.

Example: sed

Professional check: verify the result independently instead of assuming a command, shortcut or setting succeeded.

awk

What: Linux command awk: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check awk --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study awk in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

Why it matters: Connect this skill to the module goal, identify its inputs and expected output, and note what could go wrong if the wrong target, permission, format or context is used.

How to learn it: Observe the starting state β†’ perform the smallest safe example β†’ inspect the result β†’ change one variable β†’ repeat and explain the difference.

Example: awk

Professional check: verify the result independently instead of assuming a command, shortcut or setting succeeded.

Practice lab

Take one item from this module, reproduce the example in a safe environment, change one variable, record the result, and explain why the result changed.

Checkpoint

Before continuing, you should be able to explain the purpose, perform the basic workflow, recognize one common mistake, and describe how you would troubleshoot an unexpected result.

Module 03 β€” Admin

What you learn: chmod, chown, id, ps, top, kill, apt, dnf, pacman, systemctl, journalctl.

Deep study guide

Syntax β†’ options/arguments β†’ streams β†’ pipes/redirection β†’ exit codes. Re-run small commands and inspect output after every step.

Method: identify the starting state β†’ perform one controlled action β†’ observe the result β†’ compare it with the expected result β†’ document what changed.

chmod

What: Linux command chmod: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check chmod --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study chmod in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

Why it matters: Connect this skill to the module goal, identify its inputs and expected output, and note what could go wrong if the wrong target, permission, format or context is used.

How to learn it: Observe the starting state β†’ perform the smallest safe example β†’ inspect the result β†’ change one variable β†’ repeat and explain the difference.

Example: chmod 755 script.sh

Professional check: verify the result independently instead of assuming a command, shortcut or setting succeeded.

chown

What: Linux command chown: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check chown --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study chown in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

Why it matters: Connect this skill to the module goal, identify its inputs and expected output, and note what could go wrong if the wrong target, permission, format or context is used.

How to learn it: Observe the starting state β†’ perform the smallest safe example β†’ inspect the result β†’ change one variable β†’ repeat and explain the difference.

Example: chown

Professional check: verify the result independently instead of assuming a command, shortcut or setting succeeded.

id

What: Linux command id: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check id --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study id in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

Why it matters: Connect this skill to the module goal, identify its inputs and expected output, and note what could go wrong if the wrong target, permission, format or context is used.

How to learn it: Observe the starting state β†’ perform the smallest safe example β†’ inspect the result β†’ change one variable β†’ repeat and explain the difference.

Example: id

Professional check: verify the result independently instead of assuming a command, shortcut or setting succeeded.

ps

What: Linux command ps: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check ps --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study ps in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

Why it matters: Connect this skill to the module goal, identify its inputs and expected output, and note what could go wrong if the wrong target, permission, format or context is used.

How to learn it: Observe the starting state β†’ perform the smallest safe example β†’ inspect the result β†’ change one variable β†’ repeat and explain the difference.

Example: ps aux

Professional check: verify the result independently instead of assuming a command, shortcut or setting succeeded.

top

What: Linux command top: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check top --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study top in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

Why it matters: Connect this skill to the module goal, identify its inputs and expected output, and note what could go wrong if the wrong target, permission, format or context is used.

How to learn it: Observe the starting state β†’ perform the smallest safe example β†’ inspect the result β†’ change one variable β†’ repeat and explain the difference.

Example: top

Professional check: verify the result independently instead of assuming a command, shortcut or setting succeeded.

kill

What: Linux command kill: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check kill --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study kill in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

Why it matters: Connect this skill to the module goal, identify its inputs and expected output, and note what could go wrong if the wrong target, permission, format or context is used.

How to learn it: Observe the starting state β†’ perform the smallest safe example β†’ inspect the result β†’ change one variable β†’ repeat and explain the difference.

Example: kill PID

Professional check: verify the result independently instead of assuming a command, shortcut or setting succeeded.

apt

What: Linux command apt: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check apt --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study apt in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

Why it matters: Connect this skill to the module goal, identify its inputs and expected output, and note what could go wrong if the wrong target, permission, format or context is used.

How to learn it: Observe the starting state β†’ perform the smallest safe example β†’ inspect the result β†’ change one variable β†’ repeat and explain the difference.

Example: sudo apt update

Professional check: verify the result independently instead of assuming a command, shortcut or setting succeeded.

dnf

What: Linux command dnf: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check dnf --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study dnf in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

Why it matters: Connect this skill to the module goal, identify its inputs and expected output, and note what could go wrong if the wrong target, permission, format or context is used.

How to learn it: Observe the starting state β†’ perform the smallest safe example β†’ inspect the result β†’ change one variable β†’ repeat and explain the difference.

Example: dnf

Professional check: verify the result independently instead of assuming a command, shortcut or setting succeeded.

pacman

What: Linux command pacman: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check pacman --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study pacman in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

Why it matters: Connect this skill to the module goal, identify its inputs and expected output, and note what could go wrong if the wrong target, permission, format or context is used.

How to learn it: Observe the starting state β†’ perform the smallest safe example β†’ inspect the result β†’ change one variable β†’ repeat and explain the difference.

Example: pacman

Professional check: verify the result independently instead of assuming a command, shortcut or setting succeeded.

systemctl

What: Linux command systemctl: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check systemctl --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study systemctl in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

Why it matters: Connect this skill to the module goal, identify its inputs and expected output, and note what could go wrong if the wrong target, permission, format or context is used.

How to learn it: Observe the starting state β†’ perform the smallest safe example β†’ inspect the result β†’ change one variable β†’ repeat and explain the difference.

Example: systemctl

Professional check: verify the result independently instead of assuming a command, shortcut or setting succeeded.

journalctl

What: Linux command journalctl: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check journalctl --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study journalctl in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

Why it matters: Connect this skill to the module goal, identify its inputs and expected output, and note what could go wrong if the wrong target, permission, format or context is used.

How to learn it: Observe the starting state β†’ perform the smallest safe example β†’ inspect the result β†’ change one variable β†’ repeat and explain the difference.

Example: journalctl

Professional check: verify the result independently instead of assuming a command, shortcut or setting succeeded.

Practice lab

Take one item from this module, reproduce the example in a safe environment, change one variable, record the result, and explain why the result changed.

Checkpoint

Before continuing, you should be able to explain the purpose, perform the basic workflow, recognize one common mistake, and describe how you would troubleshoot an unexpected result.

Module 04 β€” Network/automation

What you learn: ip, ping, ss, curl, ssh, scp, tar, bash, cron.

Deep study guide

Syntax β†’ options/arguments β†’ streams β†’ pipes/redirection β†’ exit codes. Re-run small commands and inspect output after every step.

Method: identify the starting state β†’ perform one controlled action β†’ observe the result β†’ compare it with the expected result β†’ document what changed.

ip

What: Linux command ip: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check ip --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study ip in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

Why it matters: Connect this skill to the module goal, identify its inputs and expected output, and note what could go wrong if the wrong target, permission, format or context is used.

How to learn it: Observe the starting state β†’ perform the smallest safe example β†’ inspect the result β†’ change one variable β†’ repeat and explain the difference.

Example: ip addr

Professional check: verify the result independently instead of assuming a command, shortcut or setting succeeded.

ping

What: Linux command ping: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check ping --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study ping in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

Why it matters: Connect this skill to the module goal, identify its inputs and expected output, and note what could go wrong if the wrong target, permission, format or context is used.

How to learn it: Observe the starting state β†’ perform the smallest safe example β†’ inspect the result β†’ change one variable β†’ repeat and explain the difference.

Example: ping -c 4 example.com

Professional check: verify the result independently instead of assuming a command, shortcut or setting succeeded.

ss

What: Linux command ss: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check ss --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study ss in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

Why it matters: Connect this skill to the module goal, identify its inputs and expected output, and note what could go wrong if the wrong target, permission, format or context is used.

How to learn it: Observe the starting state β†’ perform the smallest safe example β†’ inspect the result β†’ change one variable β†’ repeat and explain the difference.

Example: ss

Professional check: verify the result independently instead of assuming a command, shortcut or setting succeeded.

curl

What: Linux command curl: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check curl --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study curl in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

Why it matters: Connect this skill to the module goal, identify its inputs and expected output, and note what could go wrong if the wrong target, permission, format or context is used.

How to learn it: Observe the starting state β†’ perform the smallest safe example β†’ inspect the result β†’ change one variable β†’ repeat and explain the difference.

Example: curl -I https://example.com

Professional check: verify the result independently instead of assuming a command, shortcut or setting succeeded.

ssh

What: Linux command ssh: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check ssh --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study ssh in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

Why it matters: Connect this skill to the module goal, identify its inputs and expected output, and note what could go wrong if the wrong target, permission, format or context is used.

How to learn it: Observe the starting state β†’ perform the smallest safe example β†’ inspect the result β†’ change one variable β†’ repeat and explain the difference.

Example: ssh user@host

Professional check: verify the result independently instead of assuming a command, shortcut or setting succeeded.

scp

What: Linux command scp: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check scp --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study scp in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

Why it matters: Connect this skill to the module goal, identify its inputs and expected output, and note what could go wrong if the wrong target, permission, format or context is used.

How to learn it: Observe the starting state β†’ perform the smallest safe example β†’ inspect the result β†’ change one variable β†’ repeat and explain the difference.

Example: scp

Professional check: verify the result independently instead of assuming a command, shortcut or setting succeeded.

tar

What: Linux command tar: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check tar --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study tar in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

Why it matters: Connect this skill to the module goal, identify its inputs and expected output, and note what could go wrong if the wrong target, permission, format or context is used.

How to learn it: Observe the starting state β†’ perform the smallest safe example β†’ inspect the result β†’ change one variable β†’ repeat and explain the difference.

Example: tar -czf backup.tar.gz folder/

Professional check: verify the result independently instead of assuming a command, shortcut or setting succeeded.

bash

What: Linux command bash: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check bash --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study bash in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

Why it matters: Connect this skill to the module goal, identify its inputs and expected output, and note what could go wrong if the wrong target, permission, format or context is used.

How to learn it: Observe the starting state β†’ perform the smallest safe example β†’ inspect the result β†’ change one variable β†’ repeat and explain the difference.

Example: bash script.sh

Professional check: verify the result independently instead of assuming a command, shortcut or setting succeeded.

cron

What: Linux command cron: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check cron --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study cron in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

Why it matters: Connect this skill to the module goal, identify its inputs and expected output, and note what could go wrong if the wrong target, permission, format or context is used.

How to learn it: Observe the starting state β†’ perform the smallest safe example β†’ inspect the result β†’ change one variable β†’ repeat and explain the difference.

Example: cron

Professional check: verify the result independently instead of assuming a command, shortcut or setting succeeded.

Practice lab

Take one item from this module, reproduce the example in a safe environment, change one variable, record the result, and explain why the result changed.

Checkpoint

Before continuing, you should be able to explain the purpose, perform the basic workflow, recognize one common mistake, and describe how you would troubleshoot an unexpected result.

SECTION

Navigation

8 items

pwd, ls, cd, mkdir, touch, cp, mv, rm

pwd

Linux command pwd: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check pwd --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study pwd in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

pwd
Common mistakes
  • Using syntax from another shell or platform
  • Changing settings or deleting data before confirming the current state
Troubleshooting
  • Reproduce the issue and record the exact message or observed result
  • Reduce the problem to one small step and compare the expected result with the actual result
Safety / best practice

Prefer read-only inspection first; review paths, targets, permissions and side effects before executing a change.

ls

Linux command ls: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check ls --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study ls in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

ls -la
Common mistakes
  • Using syntax from another shell or platform
  • Changing settings or deleting data before confirming the current state
Troubleshooting
  • Reproduce the issue and record the exact message or observed result
  • Reduce the problem to one small step and compare the expected result with the actual result
Safety / best practice

Prefer read-only inspection first; review paths, targets, permissions and side effects before executing a change.

cd

Linux command cd: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check cd --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study cd in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

cd ~/Documents
Common mistakes
  • Using syntax from another shell or platform
  • Changing settings or deleting data before confirming the current state
Troubleshooting
  • Reproduce the issue and record the exact message or observed result
  • Reduce the problem to one small step and compare the expected result with the actual result
Safety / best practice

Prefer read-only inspection first; review paths, targets, permissions and side effects before executing a change.

mkdir

Linux command mkdir: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check mkdir --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study mkdir in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

mkdir new-folder
Common mistakes
  • Using syntax from another shell or platform
  • Changing settings or deleting data before confirming the current state
Troubleshooting
  • Reproduce the issue and record the exact message or observed result
  • Reduce the problem to one small step and compare the expected result with the actual result
Safety / best practice

Prefer read-only inspection first; review paths, targets, permissions and side effects before executing a change.

touch

Linux command touch: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check touch --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study touch in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

touch notes.txt
Common mistakes
  • Using syntax from another shell or platform
  • Changing settings or deleting data before confirming the current state
Troubleshooting
  • Reproduce the issue and record the exact message or observed result
  • Reduce the problem to one small step and compare the expected result with the actual result
Safety / best practice

Prefer read-only inspection first; review paths, targets, permissions and side effects before executing a change.

cp

Linux command cp: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check cp --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study cp in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

cp source.txt backup.txt
Common mistakes
  • Using syntax from another shell or platform
  • Changing settings or deleting data before confirming the current state
Troubleshooting
  • Reproduce the issue and record the exact message or observed result
  • Reduce the problem to one small step and compare the expected result with the actual result
Safety / best practice

Prefer read-only inspection first; review paths, targets, permissions and side effects before executing a change.

mv

Linux command mv: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check mv --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study mv in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

mv old.txt archive/
Common mistakes
  • Using syntax from another shell or platform
  • Changing settings or deleting data before confirming the current state
Troubleshooting
  • Reproduce the issue and record the exact message or observed result
  • Reduce the problem to one small step and compare the expected result with the actual result
Safety / best practice

Prefer read-only inspection first; review paths, targets, permissions and side effects before executing a change.

rm

Linux command rm: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check rm --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study rm in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

rm -i file.txt
Common mistakes
  • Using syntax from another shell or platform
  • Changing settings or deleting data before confirming the current state
Troubleshooting
  • Reproduce the issue and record the exact message or observed result
  • Reduce the problem to one small step and compare the expected result with the actual result
Safety / best practice

Prefer read-only inspection first; review paths, targets, permissions and side effects before executing a change.

SECTION

Text/search

10 items

cat, less, head, tail, grep, find, sort, uniq, sed, awk

cat

Linux command cat: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check cat --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study cat in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

cat notes.txt
Common mistakes
  • Using syntax from another shell or platform
  • Changing settings or deleting data before confirming the current state
Troubleshooting
  • Reproduce the issue and record the exact message or observed result
  • Reduce the problem to one small step and compare the expected result with the actual result
Safety / best practice

Prefer read-only inspection first; review paths, targets, permissions and side effects before executing a change.

less

Linux command less: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check less --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study less in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

less
Common mistakes
  • Using syntax from another shell or platform
  • Changing settings or deleting data before confirming the current state
Troubleshooting
  • Reproduce the issue and record the exact message or observed result
  • Reduce the problem to one small step and compare the expected result with the actual result
Safety / best practice

Prefer read-only inspection first; review paths, targets, permissions and side effects before executing a change.

head

Linux command head: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check head --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study head in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

head
Common mistakes
  • Using syntax from another shell or platform
  • Changing settings or deleting data before confirming the current state
Troubleshooting
  • Reproduce the issue and record the exact message or observed result
  • Reduce the problem to one small step and compare the expected result with the actual result
Safety / best practice

Prefer read-only inspection first; review paths, targets, permissions and side effects before executing a change.

tail

Linux command tail: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check tail --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study tail in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

tail
Common mistakes
  • Using syntax from another shell or platform
  • Changing settings or deleting data before confirming the current state
Troubleshooting
  • Reproduce the issue and record the exact message or observed result
  • Reduce the problem to one small step and compare the expected result with the actual result
Safety / best practice

Prefer read-only inspection first; review paths, targets, permissions and side effects before executing a change.

grep

Linux command grep: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check grep --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study grep in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

grep -n "error" app.log
Common mistakes
  • Using syntax from another shell or platform
  • Changing settings or deleting data before confirming the current state
Troubleshooting
  • Reproduce the issue and record the exact message or observed result
  • Reduce the problem to one small step and compare the expected result with the actual result
Safety / best practice

Prefer read-only inspection first; review paths, targets, permissions and side effects before executing a change.

find

Linux command find: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check find --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study find in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

find . -name "*.txt"
Common mistakes
  • Using syntax from another shell or platform
  • Changing settings or deleting data before confirming the current state
Troubleshooting
  • Reproduce the issue and record the exact message or observed result
  • Reduce the problem to one small step and compare the expected result with the actual result
Safety / best practice

Prefer read-only inspection first; review paths, targets, permissions and side effects before executing a change.

sort

Linux command sort: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check sort --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study sort in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

sort
Common mistakes
  • Using syntax from another shell or platform
  • Changing settings or deleting data before confirming the current state
Troubleshooting
  • Reproduce the issue and record the exact message or observed result
  • Reduce the problem to one small step and compare the expected result with the actual result
Safety / best practice

Prefer read-only inspection first; review paths, targets, permissions and side effects before executing a change.

uniq

Linux command uniq: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check uniq --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study uniq in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

uniq
Common mistakes
  • Using syntax from another shell or platform
  • Changing settings or deleting data before confirming the current state
Troubleshooting
  • Reproduce the issue and record the exact message or observed result
  • Reduce the problem to one small step and compare the expected result with the actual result
Safety / best practice

Prefer read-only inspection first; review paths, targets, permissions and side effects before executing a change.

sed

Linux command sed: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check sed --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study sed in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

sed
Common mistakes
  • Using syntax from another shell or platform
  • Changing settings or deleting data before confirming the current state
Troubleshooting
  • Reproduce the issue and record the exact message or observed result
  • Reduce the problem to one small step and compare the expected result with the actual result
Safety / best practice

Prefer read-only inspection first; review paths, targets, permissions and side effects before executing a change.

awk

Linux command awk: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check awk --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study awk in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

awk
Common mistakes
  • Using syntax from another shell or platform
  • Changing settings or deleting data before confirming the current state
Troubleshooting
  • Reproduce the issue and record the exact message or observed result
  • Reduce the problem to one small step and compare the expected result with the actual result
Safety / best practice

Prefer read-only inspection first; review paths, targets, permissions and side effects before executing a change.

SECTION

Admin

11 items

chmod, chown, id, ps, top, kill, apt, dnf, pacman, systemctl, journalctl

chmod

Linux command chmod: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check chmod --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study chmod in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

chmod 755 script.sh
Common mistakes
  • Using syntax from another shell or platform
  • Changing settings or deleting data before confirming the current state
Troubleshooting
  • Reproduce the issue and record the exact message or observed result
  • Reduce the problem to one small step and compare the expected result with the actual result
Safety / best practice

Prefer read-only inspection first; review paths, targets, permissions and side effects before executing a change.

chown

Linux command chown: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check chown --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study chown in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

chown
Common mistakes
  • Using syntax from another shell or platform
  • Changing settings or deleting data before confirming the current state
Troubleshooting
  • Reproduce the issue and record the exact message or observed result
  • Reduce the problem to one small step and compare the expected result with the actual result
Safety / best practice

Prefer read-only inspection first; review paths, targets, permissions and side effects before executing a change.

id

Linux command id: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check id --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study id in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

id
Common mistakes
  • Using syntax from another shell or platform
  • Changing settings or deleting data before confirming the current state
Troubleshooting
  • Reproduce the issue and record the exact message or observed result
  • Reduce the problem to one small step and compare the expected result with the actual result
Safety / best practice

Prefer read-only inspection first; review paths, targets, permissions and side effects before executing a change.

ps

Linux command ps: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check ps --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study ps in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

ps aux
Common mistakes
  • Using syntax from another shell or platform
  • Changing settings or deleting data before confirming the current state
Troubleshooting
  • Reproduce the issue and record the exact message or observed result
  • Reduce the problem to one small step and compare the expected result with the actual result
Safety / best practice

Prefer read-only inspection first; review paths, targets, permissions and side effects before executing a change.

top

Linux command top: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check top --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study top in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

top
Common mistakes
  • Using syntax from another shell or platform
  • Changing settings or deleting data before confirming the current state
Troubleshooting
  • Reproduce the issue and record the exact message or observed result
  • Reduce the problem to one small step and compare the expected result with the actual result
Safety / best practice

Prefer read-only inspection first; review paths, targets, permissions and side effects before executing a change.

kill

Linux command kill: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check kill --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study kill in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

kill PID
Common mistakes
  • Using syntax from another shell or platform
  • Changing settings or deleting data before confirming the current state
Troubleshooting
  • Reproduce the issue and record the exact message or observed result
  • Reduce the problem to one small step and compare the expected result with the actual result
Safety / best practice

Prefer read-only inspection first; review paths, targets, permissions and side effects before executing a change.

apt

Linux command apt: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check apt --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study apt in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

sudo apt update
Common mistakes
  • Using syntax from another shell or platform
  • Changing settings or deleting data before confirming the current state
Troubleshooting
  • Reproduce the issue and record the exact message or observed result
  • Reduce the problem to one small step and compare the expected result with the actual result
Safety / best practice

Prefer read-only inspection first; review paths, targets, permissions and side effects before executing a change.

dnf

Linux command dnf: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check dnf --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study dnf in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

dnf
Common mistakes
  • Using syntax from another shell or platform
  • Changing settings or deleting data before confirming the current state
Troubleshooting
  • Reproduce the issue and record the exact message or observed result
  • Reduce the problem to one small step and compare the expected result with the actual result
Safety / best practice

Prefer read-only inspection first; review paths, targets, permissions and side effects before executing a change.

pacman

Linux command pacman: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check pacman --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study pacman in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

pacman
Common mistakes
  • Using syntax from another shell or platform
  • Changing settings or deleting data before confirming the current state
Troubleshooting
  • Reproduce the issue and record the exact message or observed result
  • Reduce the problem to one small step and compare the expected result with the actual result
Safety / best practice

Prefer read-only inspection first; review paths, targets, permissions and side effects before executing a change.

systemctl

Linux command systemctl: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check systemctl --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study systemctl in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

systemctl
Common mistakes
  • Using syntax from another shell or platform
  • Changing settings or deleting data before confirming the current state
Troubleshooting
  • Reproduce the issue and record the exact message or observed result
  • Reduce the problem to one small step and compare the expected result with the actual result
Safety / best practice

Prefer read-only inspection first; review paths, targets, permissions and side effects before executing a change.

journalctl

Linux command journalctl: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check journalctl --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study journalctl in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

journalctl
Common mistakes
  • Using syntax from another shell or platform
  • Changing settings or deleting data before confirming the current state
Troubleshooting
  • Reproduce the issue and record the exact message or observed result
  • Reduce the problem to one small step and compare the expected result with the actual result
Safety / best practice

Prefer read-only inspection first; review paths, targets, permissions and side effects before executing a change.

SECTION

Network/automation

9 items

ip, ping, ss, curl, ssh, scp, tar, bash, cron

ip

Linux command ip: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check ip --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study ip in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

ip addr
Common mistakes
  • Using syntax from another shell or platform
  • Changing settings or deleting data before confirming the current state
Troubleshooting
  • Reproduce the issue and record the exact message or observed result
  • Reduce the problem to one small step and compare the expected result with the actual result
Safety / best practice

Prefer read-only inspection first; review paths, targets, permissions and side effects before executing a change.

ping

Linux command ping: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check ping --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study ping in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

ping -c 4 example.com
Common mistakes
  • Using syntax from another shell or platform
  • Changing settings or deleting data before confirming the current state
Troubleshooting
  • Reproduce the issue and record the exact message or observed result
  • Reduce the problem to one small step and compare the expected result with the actual result
Safety / best practice

Prefer read-only inspection first; review paths, targets, permissions and side effects before executing a change.

ss

Linux command ss: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check ss --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study ss in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

ss
Common mistakes
  • Using syntax from another shell or platform
  • Changing settings or deleting data before confirming the current state
Troubleshooting
  • Reproduce the issue and record the exact message or observed result
  • Reduce the problem to one small step and compare the expected result with the actual result
Safety / best practice

Prefer read-only inspection first; review paths, targets, permissions and side effects before executing a change.

curl

Linux command curl: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check curl --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study curl in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

curl -I https://example.com
Common mistakes
  • Using syntax from another shell or platform
  • Changing settings or deleting data before confirming the current state
Troubleshooting
  • Reproduce the issue and record the exact message or observed result
  • Reduce the problem to one small step and compare the expected result with the actual result
Safety / best practice

Prefer read-only inspection first; review paths, targets, permissions and side effects before executing a change.

ssh

Linux command ssh: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check ssh --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study ssh in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

ssh user@host
Common mistakes
  • Using syntax from another shell or platform
  • Changing settings or deleting data before confirming the current state
Troubleshooting
  • Reproduce the issue and record the exact message or observed result
  • Reduce the problem to one small step and compare the expected result with the actual result
Safety / best practice

Prefer read-only inspection first; review paths, targets, permissions and side effects before executing a change.

scp

Linux command scp: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check scp --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study scp in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

scp
Common mistakes
  • Using syntax from another shell or platform
  • Changing settings or deleting data before confirming the current state
Troubleshooting
  • Reproduce the issue and record the exact message or observed result
  • Reduce the problem to one small step and compare the expected result with the actual result
Safety / best practice

Prefer read-only inspection first; review paths, targets, permissions and side effects before executing a change.

tar

Linux command tar: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check tar --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study tar in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

tar -czf backup.tar.gz folder/
Common mistakes
  • Using syntax from another shell or platform
  • Changing settings or deleting data before confirming the current state
Troubleshooting
  • Reproduce the issue and record the exact message or observed result
  • Reduce the problem to one small step and compare the expected result with the actual result
Safety / best practice

Prefer read-only inspection first; review paths, targets, permissions and side effects before executing a change.

bash

Linux command bash: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check bash --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study bash in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

bash script.sh
Common mistakes
  • Using syntax from another shell or platform
  • Changing settings or deleting data before confirming the current state
Troubleshooting
  • Reproduce the issue and record the exact message or observed result
  • Reduce the problem to one small step and compare the expected result with the actual result
Safety / best practice

Prefer read-only inspection first; review paths, targets, permissions and side effects before executing a change.

cron

Linux command cron: a practical CLI building block. Use it in a terminal, review the output before changing files or services, and check cron --help for supported options. Linux Commands: learn command grammar, options, arguments, stdin/stdout/stderr, pipes, redirection, exit codes and safe composition. Prefer inspection before mutation. Study cron in four passes: (1) purpose and vocabulary, (2) mechanism or syntax, (3) a safe practical example, and (4) verification plus troubleshooting. For every exercise, record the starting state, action, expected result, actual result and recovery step. This turns memorization into a repeatable professional workflow.

cron
Common mistakes
  • Using syntax from another shell or platform
  • Changing settings or deleting data before confirming the current state
Troubleshooting
  • Reproduce the issue and record the exact message or observed result
  • Reduce the problem to one small step and compare the expected result with the actual result
Safety / best practice

Prefer read-only inspection first; review paths, targets, permissions and side effects before executing a change.