Arguments Shell parameters Variables Local and Environment variables List of Environment variables List of Special bash shell variables Array Variables Define Function Macros functions Redirection Redirect output from one command as input for another.
if 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 Shell expansion Escape Characters, delimiters and Quotes File operators -f Command Substitution 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.