Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

up vote 0 down vote accepted

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

$ killall urxvt

or

$ 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
1  
@Nate yes it is. in Linux kernel signaling is happening in the background every time you try 'close' a process.by 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

Your Answer

 
discard

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.