$kill
Send termination or control signals to processes by PID.
kill [OPTIONS] PID...Попробуйте в интерактивной песочнице
Клиентская симуляция без установки с мгновенным результатом.
Обзор и принцип работы
`kill` transmits POSIX signals to running processes. Despite its name, `kill` is a signal dispatcher. By default, it sends `SIGTERM` (15), which politely asks a process to clean up resources and exit. If a program is completely frozen, `SIGKILL` (9) forcefully terminates it immediately.
Основные флаги и параметры команды
| Flag / Option | Description |
|---|---|
| -9, -KILL | Send SIGKILL to forcefully terminate a process immediately (cannot be caught or ignored). |
| -15, -TERM | Send SIGTERM to request graceful termination (default signal). |
| -l | List all available signal names and numbers. |
Практические примеры использования
kill 1024Sends SIGTERM to allow graceful shutdown.
kill -9 1024Immediately stops the process at the kernel level.
Похожие команды Linux
Отображение моментального снимка активных процессов операционной системы.
Display real-time Linux processes and system resource utilization.
Interactive process viewer with colorful CPU meters and mouse support.
Print the effective username associated with the current shell session.
Display or set system date and time.
Print operating system name and kernel architecture.