My question is this.
I have a jar file that I want to be able to run from command line with a simple command. So in my
~/.bashrc file I created an alias like so:
alias selenium='java -jar selenium-server-standalone-2.31.0.jar'
the jar file is in here:
and I have
/usr/local/bin in my path variable. My understanding is that because it is in my Path variable I can run it from anywhere, however if I open a terminal and type:
I get this:
Error: Unable to access jarfile selenium-server-standalone-2.31.0.jar
so the alias is working, but it cant access the file. If I change directory to
/usr/local/bin and type
selenium again it works
Any reason why I can't run this from anywhere?
Also, what is the purpose of
/usr/local/bin folder. IS this where I should put programs I want to run?