2

I want to run a program, for example gedit from terminal.

How can I run gedit through terminal by just typing ge on terminal?

A.B.
  • 92,125
Dika
  • 23
  • 1
  • 1
  • 6

2 Answers2

6

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.

4

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
Jacob Vlijm
  • 85,475