Recently Updated Pages
Command History
The Mysterious ^[[A First, start a new Shell /bin/sh. /bin/sh Then enter the following command,...
Basic Operations
Default Shell echo $SHELL /bin/bash If you start a new Shell in the current terminal (e.g., sw...
Basic Syntax
Shebang #!/usr/bin/env bash Variable Assignment No spaces are allowed around the = sign. name=...
Special Parameters
Parameters: $? The exit code of the previous command or script, 0 for success, non-0 for failure...
Signal
Bash Shell By default, the Bash Shell ignores the SIGQUIT(3) and SIGTERM(15) signals, so executi...
Parameter Expansion
In Bash, parameter expansion is a mechanism for manipulating and handling the contents of variabl...
Output
Standard File Descriptors Standard File Descriptors. Name Number Description STDIN 0 Stan...
Loop
For Statement for var in list do ... done The var variable can be normally used outside the...
Input
Positional Parameters Positional Parameters, script positional parameters. $0: script name, inc...
Function
Creating a Function function name { commands } or name() { commands } Function Return...