Skip to main content

Recently Updated Pages

Terminal

Linux Command Line and Shell Scripting ... Shell

A terminal is a user interface, while a shell is running inside a terminal. Early Terminals Ear...

Updated 2 months ago by kugarocks

Subshell

Linux Command Line and Shell Scripting ... Shell

The definition of Subshell in some books or materials is unclear, and the explanations often cont...

Updated 2 months ago by kugarocks

What is Shell

Linux Command Line and Shell Scripting ... Shell

A shell is a command-line interpreter that lets you interact with the operating system by typing ...

Updated 2 months ago by kugarocks

Command Type

Linux Command Line and Shell Scripting ... Shell

Builtin Commands Builtin commands are implemented by the Shell itself, they run without starting...

Updated 2 months ago by kugarocks

Command History

Linux Command Line and Shell Scripting ... Shell

The Mysterious ^[[A First, start a new Shell /bin/sh. /bin/sh Then enter the following command,...

Updated 2 months ago by kugarocks

Basic Operations

Linux Command Line and Shell Scripting ... Shell

Default Shell echo $SHELL /bin/bash If you start a new Shell in the current terminal (e.g., sw...

Updated 2 months ago by kugarocks

Basic Syntax

Linux Command Line and Shell Scripting ... Script

Shebang #!/usr/bin/env bash Variable Assignment No spaces are allowed around the = sign. name=...

Updated 2 months ago by kugarocks

Special Parameters

Linux Command Line and Shell Scripting ... Script

Parameters: $? The exit code of the previous command or script, 0 for success, non-0 for failure...

Updated 2 months ago by kugarocks

Signal

Linux Command Line and Shell Scripting ... Script

Bash Shell By default, the Bash Shell ignores the SIGQUIT(3) and SIGTERM(15) signals, so executi...

Updated 2 months ago by kugarocks

Parameter Expansion

Linux Command Line and Shell Scripting ... Script

In Bash, parameter expansion is a mechanism for manipulating and handling the contents of variabl...

Updated 2 months ago by kugarocks