1

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?

1 Answer 1

0

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

$ killall urxvt

or

$ killal -u <user> urxvt 
2
  • 1
    Works fine, but doesn't seem the nicest way to go about things -- is this really the 'good citizen' way to do it?
    – So8res
    Commented May 8, 2012 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.
    Commented May 8, 2012 at 21:05

You must log in to answer this question.

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