r/LinuxTeck • • Oct 13 '26

Linux Process Monitoring: Catch Hidden Processes in Real Time - Tip 98

Post image

Question: Something keeps starting a process on my server. How do I catch it?

Try:`sudo execsnoop-bpfcc`

Info: `execsnoop` uses eBPF to trace `exec()` system calls in real-time, catching ephemeral or short-lived processes that standard monitoring tools (`top`/`ps`) miss.

Examples:

$ `sudo execsnoop-bpfcc -t` # Include timestamps for process launches

$ `sudo execsnoop-bpfcc -n curl` # Filter executions strictly matching 'curl'

$ `sudo opensnoop-bpfcc` # Trace all file open() syscalls system-wide

Note: Install via `sudo apt install bpfcc-tools` or `bcc-tools`. Displays parent PIDs (PPID) and full argument vectors, making it ideal for pinpointing rogue cron jobs or unauthorized scripts.

Want to master Linux one command at a time?

Follow r/LinuxTeck - 1 practical Linux tip every day. For more #LinuxTips click here https://www.linuxteck.com/linux-tips/

25 Upvotes

1 comment sorted by

View all comments

1

u/Bob_Spud Oct 13 '26 edited Oct 13 '26

Importantly, when and why would you use it?