⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 zap.sh

📁 su 的源代码库
💻 SH
字号:
#! /bin/sh# /*********************** self documentation **********************/# ZAP - kill processes by name## Typical usages:#	zap ximage#	zap 'xmovie|xgraph'## Zap accepts full pattern matching for the process names## Caveat: zap assumes that the FIRST field produced by the#	Unix "ps" command is the pid (process identifier) number.#	If not, change the number in the awk print statement to#	the appropriate field.## Author: Jack, 6/95 -- after Kernighan and Pike's zap## /**************** end self doc ********************************/PATH=/bin:/usr/bin:/usr/ucbcmd=`basename $0`case $# in	1) # OK;;	*) echo "Usage: $cmd process_name" 1>&2 ; exit 1;;esacfor i in `ps | egrep "$*" | grep -v zap | awk '{print $1}'`do	kill -9 $i 2>/dev/nulldoneexit 0

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -