What does the special variable $0 refer to in a bash script?

0109

In a bash script, the special variable $0 refers to the name of the script itself. It provides the path used to invoke the script, which can be either a relative or absolute path depending on how the script was executed.

0 Comments

no data
Be the first to share your comment!