System utilities such as ls
don't need to have the full path typed before executing them. However, to execute Netbeans, I have to type /home/chris/netbeans-7.0.1/bin/netbeans
. How can I make it so that I only have to type netbeans
?
System utilities such as ls
don't need to have the full path typed before executing them. However, to execute Netbeans, I have to type /home/chris/netbeans-7.0.1/bin/netbeans
. How can I make it so that I only have to type netbeans
?
An easy way is to place a link in /usr/local/bin:
after that you can execute netbeans with:
You can add an alias
Open Terminal Ctrl+Alt+T
write this at the bottom of the file:
Ctrl + x
Y
Enter
The netbeans word is the command you will use to start the program, you can change it to whatever you need. Inside the quotes is the command you want to run when netbeans alias is called.
In order this command to be active you have to re-open the Terminal, or type