I want to be able to make a Python program and then execute it in the terminal no matter which directory I am currently located in. I mean, if I have an executable Python file and I'm in the same folder of the file I can directly execute it but if I'm in other directories I can't.
I want to be able to execute it from anywhere as I do with all the terminal commands. I think it has to do with the PATH but I'm pretty new to Linux, so I'd appreciate any help with this.
~/bin
, yes,/bin
is not an appropriate location for user scripts. – Jacob Vlijm Apr 27 '15 at 11:40/bin
is there any particular reason that location is not advisable? I may have to move my scripts if it will affect my computer – Rumesh Apr 27 '15 at 11:45~/bin
. – Jacob Vlijm Apr 27 '15 at 11:51/usr/local/bin
now – Rumesh Apr 27 '15 at 11:57