https://github.com/ivaylo-vasilev/pstool
Process information tool for Linux and Windows.
https://github.com/ivaylo-vasilev/pstool
linux process-information processes python windows
Last synced: about 2 months ago
JSON representation
Process information tool for Linux and Windows.
- Host: GitHub
- URL: https://github.com/ivaylo-vasilev/pstool
- Owner: ivaylo-vasilev
- License: mit
- Created: 2025-03-01T00:19:45.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-06T23:08:05.000Z (about 1 year ago)
- Last Synced: 2025-10-22T15:10:17.414Z (7 months ago)
- Topics: linux, process-information, processes, python, windows
- Language: Python
- Homepage:
- Size: 127 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pstool
Process information tool for Linux and Windows.
---
**pstool** is a CLI program whose purpose is to list the loaded processes in a Linux or Windows based system and to give detailed information about each one of them, such as the **process ID**, **executable name**, **command line parameters** with which the process was started, and the **network or Internet connections** of the process if any. The program can show the information for a specific process or group of processes of a program, giving you the ability to search by *name*, *PID (process ID)*, or *process status*. **pstool** has an option for a verbose results.
**[UPDATE]** 2025-05-02: (v.2025.3) Cleaning some differences between Linux and Windows versions, like the keyword for "net_connections", which was "connections" with previous versions of **psutil** library. Changed the way of how the total number of loaded processes is displayed if **pstool** is used without additional command line arguments. In Linux version the total amount of used memory is currently *not* displayed along with the number of loaded processes.
**Usage:**
`$pstool -> list all the loaded processes`
Optional arguments:
```
--name NAME process name
--status {running,stopped,sleeping,zombie,dead,idle} process status
--pid PID process PID
-v show verbose results
```
The current version of **pstool** can also terminate a single process or all loaded processes of a given program. The following optional arguments are related to process(es) termination:
```
--kill PID [PID ...] terminate process(es)
--killall NAME [NAME ...] terminate process(es) by name
```