I save a file Logisim2.7.1.jar in my directory at
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
.bashrcfile by adding this line at the bottom:
- After that I did something with
chmodin my command line which i forgot to make terminal to look in the new bin directories. any helps?