Linux Commands for Beginners: Learn These 15 First

The terminal looks like it demands memorizing hundreds of commands. It doesn't. Fifteen commands cover the overwhelming majority of what anyone — developer, sysadmin or curious user — actually types in a day. This guide gives them to you in learning order, with the mental model that ties them together.

The mental model: you are always somewhere

Everything in Linux lives in one tree of directories starting at / (the root). Your shell is always "standing" in exactly one directory — the working directory — and every command you run is interpreted from there. That's the whole model. The first three commands manage it:

  1. pwd — where am I? Prints your current path.
  2. ls — what's here? Lists the directory. ls -la shows details and hidden files.
  3. cd — go somewhere. cd projects enters, cd .. goes up, cd alone goes home.

Spend your first session just walking around with these three. Seriously — fluency here makes everything else easy.

Making and unmaking things

  1. mkdir — create directories. mkdir -p a/b/c builds a whole nested path.
  2. touch — create empty files.
  3. cp — copy. cp -r for directories.
  4. mv — move and rename; they're the same operation.
  5. rm — delete. There is no trash bin. rm -r removes directories; read twice before Enter.

Reading and searching

  1. cat — print a file to the screen. Perfect for small files.
  2. less — scroll through big files: arrows to move, / to search, q to quit.
  3. grep — find lines containing text: grep error app.log. The single most useful command on this list.
  4. find — find files by name: find . -name "*.pdf".

The survival kit

  1. chmod — make scripts runnable: chmod +x script.sh. (Full story: permissions guide.)
  2. man — the built-in manual: man ls documents every option. q exits.
  3. history — your past commands. Better yet, press Ctrl+R and type a fragment to search them.

Three habits that accelerate everything

Practice right now

This is a real simulated terminal. Try the first three commands — pwd, ls, cd documents — then create and delete something:

Where to go next

The interactive course turns this list into 48 checked exercises — the fastest route to muscle memory. Then keep the cheat sheet nearby and dip into the reference whenever a command surprises you.