I save a file Logisim2.7.1.jar in my directory at /home/danny/Application
.
Whenever I want to run this file in terminal, i have to type these following line in terminal:
cd /home/danny/Application
java -jar logisim.2.7.1.jar
Then the file will execute.
My question is: instead of typing all that command line in terminal, can I just type logisim
in my terminal and the file will execute?
I did this before by doing the following steps which im not sure, if you know, please correct me:
- Create a folder called "bin" in home directories.
- Create a text file inside the bin folder, and add this line java -jar logisim.2.7.1.jar then save it as logisim.txt
- I then edit the
.bashrc
file by adding this line at the bottom:
PATH=$PATH: home/familypc/bin/
- After that I did something with
chmod
in my command line which i forgot to make terminal to look in the new bin directories. any helps?