I installed a program and I want to create a shortcut.
e.g. I want to type eclipse
into the terminal to launch the program.
I already copied the eclipse folder in /home/user/Programs
and created a symbolinc link to the executable /home/user/Programs/eclipse/eclipse
(the one that allows me to launch the program by typing ./eclipse
, I guess it is a binary or like a shell script) in a folder located in /home/bin
and I added this last folder to the path using export.
But I have this issue:
bash: ./eclipse: No such file or directory
Can you please help me on that? I am sure that I missed something
Best Answer
You can use alias also. Add below line to the
~/.bashrc
file.(gedit ~/.bashrc
command will open file for the editing.) Then close and open a terminal.alias eclipse='/home/<user>/Programs/eclipse/eclipse'
Then type
eclipse
to open Eclipse. You don't need./
at the begining of the command.