What is bash symbol?

What is bash symbol?
Answer
Special bash characters and their meaning

Special bash character

Meaning

#

# is used to comment a single line in bash script

$$

$$ is used to reference process id of any command or bash script

$0

$0 is used to get the name of the command in a bash script.

$name

$name will print the value of variable “name” defined in the script.
 

Tìm kiếm

Back
Top