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.

2m read timeFrom linuxhandbook.com
Post cover image
Table of contents
Find the logged-in shell using the $0Use $0 in shell scriptsMore special variables in Bash

Sort: