Files
developer-roadmap/roadmaps/shell-bash/content/0@pgZIDDxAP9mOtEI0HL3l-.md
T
Arik Chakma 274082fd77 feat: clean roadmap content and sync scripts (#10181)
* refactor: clean to roadmap content

* refactor: move shared helpers into scripts/lib
2026-07-28 05:45:17 +06:00

724 B

$0 in Shell Scripting

In shell scripting, $0 is a special variable that holds the name of the script being executed. It essentially represents the command used to invoke the script. This can be the script's filename, or if the script was invoked with a path, it will contain that path. $0 is useful for identifying the script itself within the script's code, for example, in logging or error messages.

Visit the following resources to learn more: