mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2026-09-21 12:44:00 +08:00
* refactor: clean to roadmap content * refactor: move shared helpers into scripts/lib
724 B
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: