COMMANDER1.0
LEARN

Confidence comes from understanding.

Short, practical notes for working with a command line.

01 / GUIDE

What is a command line?

A command line is a text interface to programs. The shell reads a command, expands its arguments and starts the program.

02 / GUIDE

Arguments and flags

Arguments are values passed to a program. Options change its behavior. An option may consume the next argument as its value.

03 / GUIDE

Bash basics

Bash interprets shell syntax before a program receives its arguments. Variables, wildcards and substitutions can change the resulting argument list.

04 / GUIDE

Quotes and escaping

Single quotes preserve literal characters. Double quotes still allow variable and command substitution. Unquoted spaces separate arguments.

05 / GUIDE

Pipes and redirections

A pipe sends standard output to another program. > redirects output and may truncate a file; >> appends. Standard error is a separate stream.

06 / GUIDE

Linux permissions

Permissions describe read, write and execute access for owner, group and others. In numeric modes, read=4, write=2 and execute=1.

07 / GUIDE

Git restore, revert and reset

restore updates working-tree files or the index. revert records a new commit that reverses an earlier commit. reset moves a reference and may also change the index and working tree.

08 / GUIDE

Docker Compose essentials

Compose describes services, networks and volumes in YAML. Each service selects an image and its runtime configuration.

09 / GUIDE

How cron works

Traditional Linux crontab uses minute, hour, day of month, month and day of week. A user crontab follows those fields with a command.

10 / GUIDE

Common command-line mistakes

Small differences matter: spaces, quotes, current directory, trailing slashes and option order can all change behavior.