Arguments Shell parameters. Variables Local bash shell and Environment variables. Array Variables Define a Function Macro. Functions Use shell functions to group commands. Redirection Redirect output from one command as input for another.
if then else Conditionally perform a command. for Expand words, and execute commands. while Execute commands. break and continue Control loop execution.
Arithmetic expressions. Using brackets to Group and expand expressions. Logical, arithmetical and comparison operators. Conditional execution command-A AND/OR command-B. Comparison Operators exists, greater than, equal to. Escape Characters, delimiters and Quotes. File operators -f Command Substitution $(command)Shell expansion ${parameter:-word}
{ } $ ~ &{} $()Wildcard Pattern matching.
Run a macOS shell script. Run a script at startup/login. bash Prompt Statement variables. macOS startup files .zprofile and .bash_profile Here documents and Here Strings. strftime Date and time string formats.
Keyboard Shortcuts - bash Terminal. Keyboard Shortcuts - macOS. Key Bindings - Change the action of keys. Create a bootable MacOS drive. Defaults - A list of macOS preferences. macOS Root user - How to Enable/Disable. macOS Filesystem hierarchy. Valid Filenames in macOS. macOS versions.
See also: Websites, Books, Apps & Utilities for macOS.