找回密码
 骑士注册

QQ登录

微博登录

搜索
❏ 站外平台:

相关手册

  • kill - send a signal to a process

    kill [ -signal | -s signal ] pid ...
           kill [ -L | -V, --version ]
           kill -l  [ signal ]
    The  default  signal  for  kill is TERM. Use -l or -L to list available
           signals.  Particularly useful signals include  HUP,  INT,  KILL,  STOP,
           CONT,  and  0.   Alternate  signals  may be specified in three ways: -9
           -SIGKILL -KILL.  Negative PID  values  may  be  used  to  choose  whole
           process  groups;  see the PGID column in ps command output. A PID of -1
  • kill - send signal to a process

    #include <sys/types.h>
           #include <signal.h>
    
           int kill(pid_t pid, int sig);
    
    The  kill()  system  call can be used to send any signal to any process
           group or process.
    
           If pid is positive, then signal sig is sent to the process with the  ID
           specified by pid.
  • xkill - kill a client by its X resource

    xkill  [-display  displayname] [-id resource] [-button number] [-frame]
           [-all]
    Xkill is a utility for forcing the X server  to  close  connections  to
           clients.   This  program  is very dangerous, but is useful for aborting
           programs that have displayed undesired windows on a user's screen.   If
           no  resource identifier is given with -id, xkill will display a special
           cursor as a prompt for the user to select a window to be killed.  If  a

相关文章

  • 如何使用xkill命令杀掉Linux进程/未响应的程序

    我们如何在Linux中杀掉一个资源/进程?很明显我们会找出资源的pid然后用kill命令。 说的更明白一点,我们可以找到某个资源(比如terminal)的PID: $ ps -A | grep -i terminal 6228 ? 00:00:00 gnome-terminal 上面的输出中,6288就是进程(gnome-terminal)的pid, 使用下面的命令来杀掉进程。 $ kill 6228 kill命令会发送一个信号给该pid的进程。 另外一个方法是我们可以使用pkill命令,它可以基于进程的名字或者其他的属性来杀掉进程。同样我们要杀掉一个叫terminal的进程可以这么做: $ pkill terminal 注意: pkill命令后面进程名

    2015-06-11 11:40     Avishek Kumar, geekpi

返回顶部

分享到微信

打开微信,点击顶部的“╋”,
使用“扫一扫”将网页分享至微信。