Use shell output when you need to save or grep the results.

Section: Export and correlation recipes

Inspect open files for a PID

bash
bash
sudo lsof -p 12345 | head -50
Explanation

Complements the in-app `l` shortcut with copyable output.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Export and correlation recipes
Inspect sockets owned by a process
Check network connections for the suspected process.
OpenIn sheetbashsame section
Correlate a PID with journal logs
Inspect logs for a systemd service around an incident.
OpenIn sheetbashsame section
List threads for one PID with ps
Inspect thread-level CPU consumers.
OpenIn sheetbashsame section
Use smem for proportional memory analysis
Pair htop with PSS-focused memory reporting when available.
OpenIn sheetbashsame section
Capture a batch snapshot with top
Use top when you need non-interactive output.
List top CPU consumers with ps
Get a quick textual top list.