How To Run Bash Script. If you want to run your bash script from anywhere as if it were a regular Linux command add the location of your shell script to the PATH variable. Enter the name of your startup script or program.
If you are using zsh specific syntax you can indicate that it is zsh script by adding. It print commands and their arguments as they are executed. Once a day on TuWeThuFriSat 5 min after laptop startup.
Type sh scriptsh and hit enter.
In the command section enter the command that you want to execute say sudo mkdir hometutsDesktopMy-Test-Script Alternatively you can enter the full path to your bash script or executable system command in the various bin directories. If you working as a Linux administrator or as a DevOps engineer then you might get a use case where you need to execute multiple bash scripts in parallel without waiting to finish execution of previous script. Pass the -x to debug shell script when running on your system. A pop-window will open.