I want to run a program, for example gedit
from terminal.
How can I run gedit
through terminal by just typing ge
on terminal?
I want to run a program, for example gedit
from terminal.
How can I run gedit
through terminal by just typing ge
on terminal?
You can add an alias for the command. Open your terminal with ctrl+alt+t and type:
nano ~/.bashrc
Find alias section and add alias:
alias ge='gedit'
Changes will take affect in the new terminal.
An option is to create a directory ~/bin, and make a link from there to gedit:
ln -sf /usr/bin/gedit ~/bin/ge
You can do that with any application; to find out where to link to, type:
which [applicationname]
e.g.
$ which gedit
/usr/bin/gedit
~/.bashrc
as you noticed very well; the main problem is to create a custom name, an alias, for one command. – Radu Rădeanu Aug 12 '14 at 12:40