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 know about unity --reset command. But how can I simply restart Unity without resetting its profile?

share|improve this question
What about unity --replace? – Reda Lazri Mar 24 '11 at 11:29
What's the equivalent for Unity 2D? – type Jul 10 '11 at 12:14
up vote 74 down vote accepted

I don't use Unity but given what I know of its mechanics, this should work:


You'll want to stick that in a run box (Alt+F2) rather than a terminal or it'll break when you exit the terminal.

If you want to run it from a terminal use:

setsid unity
share|improve this answer
That's correct. Although, logging out and back in works better in my experience (I'm using Unity as my main desktop environment at this point) – James Mar 24 '11 at 14:15
A good way to do it in a terminal, in case you want to see debug messages, is setsid unity. You can close the terminal when ever you like, but you'll still get the terminal output made by Unity. – Stefano Palazzo Mar 24 '11 at 19:45
If you want to run that in terminal without breaking it when you exit terminal, type: 'unity --replace &' – Rafał Cieślak Apr 27 '11 at 17:41
Just using unity will work as it is the identical command. – Cas May 11 '11 at 16:20
using unity --replace have a tiny catch, you have to launch the menu once then only the left bar will auto-hide after restarted – d4v1dv00 May 25 '11 at 13:49

I found killall -u USR1 -r -g unity* (optionally, with -i for interactive) to be more effective than @Andrew's answer. My only problem with this vs unity --replace is that it will kill your session which unity --replace doesn't do. So, reserve this for when it is severely broken.

share|improve this answer

killall -USR1 unity will restart it in an account (USR1) where you have not changed your killall defaults.

share|improve this answer
thank you, ubuntudroid – Andrew Jun 18 '11 at 0:07

Another alternative that works is

pkill --signal USR1 unity
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.