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 am using ubuntu 12.04 and i know the GUI way to maintain the startup program list but now i want to find out the way to add/remove startup applications through Command Line Interface(CLI).

share|improve this question
Refer… and also possible duplicate – atenz Aug 21 '12 at 14:37
up vote 13 down vote accepted

In your home directory, there's a folder called .config/autostart. Anything placed in this folder will be run when you login. This could be accomplished through the command line by creating the .desktop file with the command nano ~/.config/autostart/blah.desktop. If you like to find out about the syntax of .desktop files, you can visit Freedesktop and Gnome.

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.