Create new terminal commands

Posted by sleort on Ask Ubuntu See other posts from Ask Ubuntu or by sleort
Published on 2013-11-06T21:07:26Z Indexed on 2013/11/06 22:08 UTC
Read the original article Hit count: 177

Filed under:
|

I recently installed eclipse the manual way. Extracting the file, setting up eclipse.desktop etc. It all works flawlessly. I also know it is possible to install eclipsee using sudo apt-get install eclipse-platform. If I use this method I can use the command eclipse in the terminal, and the program will start.

Now the manual way I used does not enable the eclipse-command in the terminal. Instead if I use eclipse-command it asks me to install eclipse from the Softwarecenter (sudo apt-get install eclipse-platform).

I wondered if there was some way of setting up a command like this to start eclipse? If so, can I do it for other programs like Apache-Maven mvn-command?

I don't want to use "aliases" because I cannot setup and eclipse alias, when "eclipse" is listed in the apt repository. It seems as if only if I install the eclipse from apt-get install I can start eclipse from a single command in the terminal.

I appreciate any help, and thanks in advance!

© Ask Ubuntu or respective owner

Related posts about command-line

Related posts about apt