openskills.info
Open Course

Command-Line Fundamentals

Command-line fundamentals covers working in a text terminal: navigating file systems, running programs, combining tools with pipes and redirection, managing processes, and writing simple shell scripts to automate repetitive tasks.

itComputer fundamentals

Don't Panic — Command-Line Fundamentals

The command line is a text interface for directing a computer. You provide an operation and its inputs, then inspect the result. It is not a mysterious alternate operating system. It is a compact way to make an action precise, repeatable, and usable from a remote session. The symbols can look as though they belong to a private club. They are grammar, which is less glamorous but far more useful.

A terminal hosts the text session. A shell reads the command language inside it. A command performs one operation. These three often arrive together in one window, wearing very similar clothes, which has caused decades of understandable confusion. The first surprise is that the shell does not hand your text straight to a command. It recognizes words and operators, applies quoting and expansion, arranges redirection, finds a command, runs it, and receives a status.

That sequence explains the odd furniture. A space can separate arguments. A wildcard can become filenames. Quotes tell the shell when text must stay literal or remain one value. Redirection connects input or output to a file, while a pipeline connects one command's output to the next command's input. Traditional shells commonly move byte streams; PowerShell commonly moves objects. The vertical bar has not betrayed you. It merely has more than one job description.

Every command also reports an exit status. In Bash and similar shells, zero signals success and a nonzero value signals failure. Output and status are separate, so a quiet command is not automatically correct and a noisy command is not automatically broken. Confirm your location, inspect help, start with a read-only action, narrow the target, then check both the result and the status. That order is not ceremonial; it is how a clever-looking command becomes an accountable one.

The Intro tab gives the full execution model and glossary. Slides compress the relationships into a map. Cheatsheet keeps the terms, stream directions, quoting rules, and inspection loop nearby. Practice turns the model into visible input, output, and status. Start there. Memorizing every utility is a poor bargain when the durable skill is knowing what the shell is about to do.

Sources