Confidence comes from understanding.
Short, practical notes for working with a command line.
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 / GUIDEArguments and flags
Arguments are values passed to a program. Options change its behavior. An option may consume the next argument as its value.
03 / GUIDEBash basics
Bash interprets shell syntax before a program receives its arguments. Variables, wildcards and substitutions can change the resulting argument list.
04 / GUIDEQuotes and escaping
Single quotes preserve literal characters. Double quotes still allow variable and command substitution. Unquoted spaces separate arguments.
05 / GUIDEPipes 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 / GUIDELinux permissions
Permissions describe read, write and execute access for owner, group and others. In numeric modes, read=4, write=2 and execute=1.
07 / GUIDEGit 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 / GUIDEDocker Compose essentials
Compose describes services, networks and volumes in YAML. Each service selects an image and its runtime configuration.
09 / GUIDEHow 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 / GUIDECommon command-line mistakes
Small differences matter: spaces, quotes, current directory, trailing slashes and option order can all change behavior.