Linux common commands-52: kill

The kill command is used to delete a running process.

Syntax format: kill [parameter] [process number]

Common parameters:


 # 列出系统支持的信号,kill命令默认使用的信号是15 SIGTERM kill -l

 # 删除进程,我们需要知道进程的id,也就是pid,pid可以通过ps命令来查看# 杀死进程号是2000的进程,发送信号9 SIGKILL,强制杀死kill -9 2000

This article is reprinted from
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment

Your email address will not be published.