|
How to see the environment of a process by PID ( |
Answered by
anki-code
May 30, 2026
Replies: 2 comments 1 reply
@aliases.register
def _penv(args):
cat f'/proc/{args[0]}/environ' | tr '\0' '\n'Handy when debugging daemons, sandboxes, systemd units: penv 12345 |
0 replies
Answer selected by
anki-code
This comment has been hidden.
This comment has been hidden.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Handy when debugging daemons, sandboxes, systemd units: