文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>xargs和kill的手册说明

xargs和kill的手册说明

时间:2006-03-08  来源:rainballdh

MAN KILL的说明: Reformatting kill(1), please wait...
KILL(1)                                        Linux User's Manual                                       KILL(1)
NAME
       kill - report process status
SYNOPSIS
       kill pid ...             Send SIGTERM to every process listed.
       kill signal pid ...      Send a signal to every process listed.
       kill -s signal pid ...   Send a signal to every process listed.
       kill -l                  List all signal names.
       kill -l signal           Convert a signal number into a name.
DESCRIPTION
       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.
SIGNALS
       The  signals  listed  below may be available for use with kill.  When known constant, numbers and defaultbehavior are shown.
       Name     Num   Action    Description
       ()                                                                                                            ()
       ALRM      14   exit
       HUP        1   exit
       INT        2   exit
       KILL       9   exit      this signal may not be blocked
       PIPE      13   exit
       POLL           exit
       PROF           exit
       TERM      15   exit
       USR1           exit
       USR2           exit
       VTALRM         exit
       STKFLT         exit      may not be implemented
       PWR            ignore    may exit on some systems
       WINCH          ignore
       CHLD           ignore
       URG            ignore
       TSTP           stop      may interact with the shell
       TTIN           stop      may interact with the shell
       TTOU           stop      may interact with the shell
       STOP           stop      this signal may not be blocked
       CONT           restart   continue if stopped, otherwise ignore
       ABRT       6   core
       FPE        8   core
       ILL        4   core
       QUIT       3   core
       SEGV      11   core
       TRAP       5   core
       SYS            core      may not be implemented
       EMT            core      may not be implemented
       BUS            core      core dump may fail
       XCPU           core      core dump may fail
       XFSZ           core      core dump may fail
NOTES
       Your shell (command line interpreter) may have a built-in kill command.  You may need to run the  command
       described here as /bin/kill to solve the conflict.
EXAMPLES
       kill -9 -1
       kill -l 11
       kill 123 543 2341 3453
    MAN XARGS的说明: Reformatting xargs(1), please wait...
XARGS                                                                                              XARGS(1L)
  DESCRIPTION
       This manual page documents the GNU version of xargs.  xargs reads  arguments  from  the  standard  input,delimited by blanks (which can be protected with double or single quotes or a backslash) or newlines, and executes the command (default is /bin/echo) one or more times  with  any  initial-arguments  followed  by  arguments read from standard input.  Blank lines on the standard input are ignored.
xargs用來處理一些輸出結果要來當另一個輸入的arguments碰到的問題。 例如
 # find /usr/include/ -name "*.h" | xargs -n 2 diff 
-n2是指定有兩兩當成輸出變成diff的argumnets
 # find /usr/include/ -name "*.h" | xargs grep '#ifdef' 
正常內定是輸出的一拖拉窟的結果,有用xargs時是一個一個餵給後面的命令
 # find /usr/include/ -name "*.h" | xargs -i cp {} ~/include/ 
-i 與 { }可以把find的輸出的每一個當成cp的第一個argument, /.就可以當成第 二個argument。 其實find裡面有-exec這個選項後面也可以用{ }表示一個一個餵給後面程式,而不是 一拖拉庫的餵給後面程式。
 # find /usr/include/ -name "*.h" -exec cp {} ~/include/ 
                                                                                          
 
相关阅读 更多 +
排行榜 更多 +
试着飞手游下载

试着飞手游下载

休闲益智 下载
血染小镇(功能菜单)中文版下载

血染小镇(功能菜单)中文版下载

飞行射击 下载
泰坦之旅高爆版下载

泰坦之旅高爆版下载

角色扮演 下载