Answers for "execute bash script from anywhere"


execute bash script from anywhere

you can modify the PATH environment variable in your .bashrc file and use the “source” command in order to refresh your current Bash environment.

$ sudo nano ~/.bashrc
export PATH="<path_to_script>:$PATH"

Exit the file and source your bashrc file for the changes to be applied.

$ source ~/.bashrc
$ echo $PATH
Posted by: Guest on June-10-2021

Code answers related to "execute bash script from anywhere"

Browse Popular Code Answers by Language