The sign in the bash is used to indicate the variables in a Bash Script. The variable can be used in two ways in Linux: Use to find the logged-in shell - Use to print the name of the script that is being executed. To use the variable in the script, all you have to do is use a simple echo statement.
Table of contents
Find the logged-in shell using the $0Use $0 in shell scriptsMore special variables in BashSort: