Skip to content

Commit 2d4eb1d

Browse files
committed
Update kill command note
1 parent a0e707e commit 2d4eb1d

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

notes/tool/linux/package/kill.md

+11-5
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ Kill processes by process ID.
1010
kill OPTIONS PID
1111
```
1212

13-
| Option | Description |
14-
| --- | --- |
15-
| `-s` `--signal` | The signal to send. It may be given as a name or a number. |
16-
| `-l` `--list` | Print a list of signal names, or convert the given signal number to a name. |
17-
| `-L` `--table` | Pretty print a table of signal names and numbers. |
13+
| Option | Description |
14+
| --------------- | --------------------------------------------------------------------------------------------- |
15+
| `-s` `--signal` | The signal to send. It may be given as a name or a number. Use 0 to just run the validations. |
16+
| `-l` `--list` | Print a list of signal names, or convert the given signal number to a name. |
17+
| `-L` `--table` | Pretty print a table of signal names and numbers. |
1818

1919
Examples:
2020

@@ -24,6 +24,12 @@ kill -9 PID # Same as `-s 9` (SIGKILL)
2424
kill -9 %JOBID
2525
```
2626

27+
Check if a process is still running.
28+
29+
```shell
30+
kill -0 PID
31+
```
32+
2733
## Pkill
2834

2935
Kill processes by process name (pattern).

0 commit comments

Comments
 (0)