Contents
You can terminate that script by pressing Ctrl+C from terminal where you started this script. Of course this script must run in foreground so you are able to stop it by Ctrl+C.
How do you end a script in Linux?
To end a shell script and set its exit status, use the exit command. Give exit the exit status that your script should have. If it has no explicit status, it will exit with the status of the last command run.
How do you stop a script from running?
You can access this menu by using Cmd + Shift + P (Mac) or Ctrl + Shift + P (Windows/Linux). Start typing Disable JavaScript and hit Enter to disable script execution.