Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to add empathy to the list of programs to start up when starting an session, i looked at this page: but I don't think this is adapted to 12.04 (see section "How to find the appropriate startup command")

So, how can i find out the command for a program to add to startup programs?

share|improve this question
This answer may help: – Takkat Jun 21 '12 at 18:54
up vote 3 down vote accepted

To find out the command for any program you should type this in the terminal-

whereis *application name*

For example,

If you want to find out the command to run Gedit the type in the terminal-

whereis gedit

and you will get an output like this-

gedit: /usr/bin/gedit /usr/lib/gedit /usr/bin/X11/gedit /usr/share/gedit /usr/share/man/man1/gedit.1.gz

out of that,the very first path you see-/usr/bin/gedit is the path to the executable file...Which should be added in the startup applications list.. :)

Hope it helps

share|improve this answer
Glad it helped :) – Nirmik Jun 24 '12 at 13:52


ps x -o args

you can get a list of running processes including the arguments that have been passed to the command.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.