Linux common commands-52: kill

The kill command is used to delete a running process.

Syntax format: kill [parameter] [process number]

Common parameters:

Example

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

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

This article is reprinted from https://xugaoxiang.com/2022/06/15/linux-cmds-52-kill/
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment