13
6
Here is what I noted down from my lecture:
- Find file
.bashrc
in your home directory - do
vi .bashrc
- When you put an application folder somewhere, make sure that its address is in the path variable.
The problem is that I do not have a .bashrc
file in my home directory. There is only a .bash_history
file in my home.
If i go to the root, there is a etc/bash.bashrc
file there but what i think is that it will make changes for all users and not just for me. I want to add this path just for myself. It shouldn't effect others. Also there is no $PATH
variable in that bashrc file so I am even more confused.
OK I get that now. On other computers, I can type lego and the software starts. On my system, the lego folder is in my
~/data/user1/bin
folder. I have added this path to .bashrc file. Now what do I have to do so that when i type lego, it should start the software? Do i have to set up an alias? If yes, how?alias lego='<What do i put here???>'
– None – 2013-04-18T13:47:15.987@detraveller Have you added
~/data/user1/bin
to your PATH environment variable in the.bashrc
file? (add this line:export PATH=$PATH:~/data/user1/bin
) - if so, you should be able to just typelego
in the terminal, and the program should start. – AcId – 2013-04-18T14:40:51.897I added only
PATH=$PATH:~/data/user1/bin
. You didn't mention export so I didn't put it there. I will try again tomorrow when I go to Uni. – detraveller – 2013-04-18T18:12:45.427But i was wondering how do i tell bash that
lego
is the word that starts the software? – detraveller – 2013-04-18T18:25:15.247