Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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

The last two lines of my .xinitrc looks like this

xterm -g 80x24+10+10 -bg black -fg green &

When I used twm, I could exit it from the menu (return to the tty where I run xinit), but how do you exit metacity? The man metacity does not mention this, but it refers to the panel menu (which I don't have). Maybe it's there?

share|improve this question
up vote 4 down vote accepted

metacity is not intended to be exited, since it is generally only meant to be used with a session manager. You will need to use an external tool to kill it.

share|improve this answer
Yes, I see a metacity process on ps -A. Instinctively, I don't like to pkill things but do you see any harm doing it in this case? (I mean, regularly.) More generally, what decides when you return to the tty after running xinit? Is it when there are no processes left running or is there a specific command that is invoked? – Emanuel Berg May 22 '12 at 22:44
Killing metacity is usually safe regardless of the presence of a session manager. The X server deinitializes when all its children die. – Ignacio Vazquez-Abrams May 22 '12 at 22:48

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.