> For the complete documentation index, see [llms.txt](https://d4rk1337.gitbook.io/the-pentesters-cheat-sheet/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://d4rk1337.gitbook.io/the-pentesters-cheat-sheet/enumeration/06-process-monitoring.md).

# Process monitoring

## ps

[ps(1) - Linux manual page](http://man7.org/linux/man-pages/man1/ps.1.html) - Report a snapshot of the current processes.

```bash
ps aux
```

## top

[top(1) - Linux manual page](http://man7.org/linux/man-pages/man1/top.1.html) - Display Linux tasks

```bash
top
```

## pspy

[GitHub - DominicBreuker/pspy](https://github.com/DominicBreuker/pspy) - Monitor linux processes without root permissions

```bash
pspy64
```

## psmonitor.sh

Monitor process changes

```bash
#!/bin/bash
IFS=$'\n'
op=$(ps -eo command)
while true; do
    np=$(ps -eo command)
    diff <(echo "$op") <(echo "np")
    sleep 1
    op=$np
done
```
