bash-guide
bash-guide copied to clipboard
How do I run a file saved at ~/bin directory
The title is self-explanatory, how can I do so in any directory?
If there is an executable in your ~/bin directory that you want to run in any other directory, you could:
- provide the entire path to the executable when running it. Eg:
~/bin/executable.exe
- add ~/bin to the
PATH
variable by doingPATH="~/bin;$PATH"
. You could then run it with justexecutable.exe
in any directory.