Skip to content

Commit

Permalink
Create ps Container.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lwindolf authored Oct 14, 2024
1 parent da4521c commit 79965f0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions runbooks/ps Container.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
This runbook is about discovering processes in a container without ps utils.

## Using systemd

systemd-cgls

## Using proc

for prc in /proc/*/cmdline; { (printf "$prc "; cat -A "$prc") | sed 's/\^@/ /g;s|/proc/||;s|/cmdline||'; echo; }

0 comments on commit 79965f0

Please sign in to comment.