Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am new to Ubuntu. I am trying to create a link to a script so that when I type ideaiu in the terminal, it opens /home/bob/programming/libs/intellij/bin/ and runs script from there.

I tried to put export ideaiu="/home/bob/programming/libs/intellij/bin/" to .bashrc, but it has not helped.

share|improve this question
up vote 5 down vote accepted

Add it as an alias

alias ideaiu="/home/bob/programming/libs/intellij/bin/"

export is for environmental variables and is used when you want the variable to be available to all shells.


share|improve this answer
Would this command have to be run whenever the computer is restarted, or the shell is closed? Is there a way to make the alias persistent? – dan08 Jun 27 '13 at 19:51
Put the alias in ~/.bashrc . If you want the command to be on your path use PATH=$PATH:/home/bob/programming/libs/intellij/bin/ If it is in your path, you will not need an alias. If you want the command to be available to all users put it in /usr/local/bin – bodhi.zazen Jun 27 '13 at 19:58
@bodhi.zazen, you mean PATH=$PATH:/home/bob/programming/libs/intellij/bin; only directories make sense in PATH. – geirha Jun 27 '13 at 20:11
yes, can't edit that – bodhi.zazen Jun 27 '13 at 20:13

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.