An open API service indexing awesome lists of open source software.

https://github.com/hash-bang/pss

Simple Linux process grep and kill
https://github.com/hash-bang/pss

Last synced: 2 months ago
JSON representation

Simple Linux process grep and kill

Awesome Lists containing this project

README

        

@hash-bang/PSS
==============
A nicer `pgrep` / `pkill`.

Features:

* Auto-sudo mode to enable all processes can be killed
* Globbing of process commands, PIDs and open ports are all supported
* `--zap` mode will politely try to kill a process (regular kill), wait then agressively kill (`-9`)
* Fancy colors to make reading the output easier

```
Usage: pss [-k | -z] [globs...]

Options:
-a, --all Show all processes not just this users
-i, --interactive Ask about all found processes
-l, --list Show all matching processes
-f, --force Force kill processes (implies --kill)
-k, --kill Attempt to kill found processes
-n, --name Match the name of the command only instead of args
-p, --pid CSV of specific Process IDs to limit to (or specify
multiple times)
-v, --verbose Be verbose about what is happening
-w, --wait

Notes:
* Globs can be any valid string, if the string is numeric and begins with `:` its assumed to be a port e.g. `:80` fetches the process listening on port 80
* If --kill, --force, --zap and --list are omitted --list is assumed
* --pid Can take a CSV of PIDs to filter by
```