Tuyết Trinh Nguyễn
New member
How can I make a program executable from everywhere?
Answer
2 Answers
Answer
2 Answers
- Make the scripts executable: chmod +x $HOME/scrips/* This needs to be done only once.
- Add the directory containing the scripts to the PATH variable: export PATH=$HOME/scrips/:$PATH (Verify the result with echo $PATH .) The export command needs to be run in every shell session.