Super User is a question and answer site for computer enthusiasts and power users. 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 use tmux. Sometimes I have a terminal emulator open and I'd like to kill it without closing all my tmux windows. Right now I can do it with a ps -u <user> | grep urxvt followed by kill <pid>, but that doesn't seem like a very nice way to do things.

What's the correct method to kill a terminal emulator (from the command line) without closing out tmux?

share|improve this question
up vote 0 down vote accepted

if you know the exact name of the process, why dont you try to killall <NameOfProc>

$ killall urxvt


$ killal -u <user> urxvt 
share|improve this answer
Works fine, but doesn't seem the nicest way to go about things -- is this really the 'good citizen' way to do it? – So8res May 8 '12 at 4:20
@Nate yes it is. in Linux kernel signaling is happening in the background every time you try 'close' a default killall sends SIGTERM to the process a more forceful signals can be sent( using -s argument) if process didn't responds, like SIGQUIT and SIGKILL.the concept of signals also exist in windows under the name of 'messages'. – Maxwell S. May 8 '12 at 21:05

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .