【分享】兼容各种Linux平台的关闭所有指定名字的进程的命令
kill -9 `ps -ef| grep processname| awk '{print $2}'`
支持以下平台:
Linux各种企业客户操作系统平台 |
AIX5.3_ppc |
AIX6.1_ppc |
AIX7.1 |
HPUX11.23_ia64 |
HPUX11.23_pa-risc |
HPUX11.31_ia64 |
HPUX11.31_pa-risc |
Solaris9Sparc |
Solaris10x86 |
Solaris10sparc |
Solaris11x86 |
Solaris11sparc |
Cent5 X64 |
Cent5X86 |
Cent6X64 |
Cent6X86 |
Cent7X64 |
Debian8X64 |
Debian8X86 |
Debian7X64 |
Debian7X86 |
Debian6X64 |
Debian6X86 |
Debian5X64 |
Debian5X86 |
Ubun10x64 |
Ubun10x86 |
Ubuntu12 X64 |
Ubuntu12 X86 |
Ubun14X64 |
Ubun14X86 |
Ora5X86 |
Ora5X64 |
Ora6X86 |
Ora6X64 |
Ora7X64 |
Rhel4X64 |
Rhel4X86 |
Rhel5x86 |
Rhel5x64 |
Rhel6X64 |
Rhel6X86 |
Rhel7X64 |
SUSE9X86 |
Suse10 X64 |
Suse10 X86 |
Suse11 x64 |
Suse11 x86 |