Recently Updated Pages
Terminal
A terminal is a user interface, while a shell is running inside a terminal. Early Terminals Ear...
Subshell
The definition of Subshell in some books or materials is unclear, and the explanations often cont...
What is Shell
A shell is a command-line interpreter that lets you interact with the operating system by typing ...
Command Type
Builtin Commands Builtin commands are implemented by the Shell itself, they run without starting...
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...