mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 08:28:11 +00:00
pkill: Add -O
option to filter processes by age
This option allows the user to specify a number of seconds. Only processes older than the given number of seconds are killed.
This commit is contained in:
parent
aa79a4ed9a
commit
17fe2c4822
2 changed files with 23 additions and 1 deletions
|
@ -5,7 +5,7 @@ pkill - Signal processes based on name
|
|||
## Synopsis
|
||||
|
||||
```sh
|
||||
$ pkill [--count] [--ignore-case] [--echo] [--newest] [--oldest] [--signal signame] [--uid uid-list] [--exact] <process-name>
|
||||
$ pkill [--count] [--ignore-case] [--echo] [--newest] [--oldest] [--older seconds] [--signal signame] [--uid uid-list] [--exact] <process-name>
|
||||
```
|
||||
|
||||
## Options
|
||||
|
@ -15,6 +15,7 @@ $ pkill [--count] [--ignore-case] [--echo] [--newest] [--oldest] [--signal signa
|
|||
* `-e`, `--echo`: Display what is killed
|
||||
* `-n`, `--newest`: Kill the most recently created process only
|
||||
* `-o`, `--oldest`: Select the least recently created process only
|
||||
* `-O`, `--older`: Select only processes older than the specified number of seconds
|
||||
* `-s signame`, `--signal signame`: Signal to send. The signal name or number may be used
|
||||
* `-U uid-list`, `--uid uid-list`: Select only processes whose UID is in the given comma-separated list. Login name or numerical user ID may be used
|
||||
* `-x`, `--exact`: Select only processes whose names match the given pattern exactly
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue