Shell Fundamentals
Overview
Understanding your shell is essential for effective system administration. These topics cover the patterns, redirections, and process controls that make bash powerful.
In This Section
| Topic | Description |
|---|---|
Heredocs, parameter expansion, arrays, brace expansion, and defensive scripting. |
|
stdin, stdout, stderr, file descriptors, and advanced redirection patterns. |
|
Jobs, background processes, signals, and process control. |
Key Concepts
Parameter Expansion Quick Reference
${VAR:-default} # Use default if unset/empty
${VAR:=default} # Set and use default if unset/empty
${VAR##pattern} # Remove longest prefix match
${VAR%%pattern} # Remove longest suffix match
${VAR//old/new} # Replace all occurrences