bash-guide icon indicating copy to clipboard operation
bash-guide copied to clipboard

How do I run a file saved at ~/bin directory

Open enbermudas opened this issue 4 years ago • 1 comments

The title is self-explanatory, how can I do so in any directory?

enbermudas avatar Mar 10 '20 12:03 enbermudas

If there is an executable in your ~/bin directory that you want to run in any other directory, you could:

  1. provide the entire path to the executable when running it. Eg: ~/bin/executable.exe
  2. add ~/bin to the PATH variable by doing PATH="~/bin;$PATH". You could then run it with just executable.exe in any directory.

valdaarhun avatar Oct 01 '20 15:10 valdaarhun