Live data from Hacker News

So, what can you do with a process ID?

will-keleher.com

21–26 of 26 posts

Re: So, what can you do with a process ID?

#23
post #14

Way hay we're out of memory Way hay our disk is thrashing Way hay I need more coffee Early in the morning! What can you do with a process ID What can you do with a process ID What can you do with a process ID Early in the morning? Send a SIGKILL to its process Send a SIGKILL to its process Send a SIGKILL to its process Early in the morning!

But what do you do with a zombie process? I haven't found the lyrics that tell me.

https://en.wikipedia.org/wiki/Drunken_Sailor

Re: So, what can you do with a process ID?

#24
post #2

Interesting there's no mention of the /proc filesystem ( https://docs.kernel.org/filesystems/proc.html ). cat /proc/ /environ would be a solid addition to this list.

True, but as written it has advice applicable to non-linux environments like MacOS, which don't have /proc.

Re: So, what can you do with a process ID?

#25
post #16
post #15

I know about some of these tricks. However, containers are popular and typically don’t have the tools installed, and you can’t necessarily sudo either. What do people replace these tricks with, in some cloud container or k8s pods?

If /proc is mounted in the container you can grab the same information (more tediously) by looking at /proc/

Some things are there, but real tedious, yes. I haven’t found something convenient and if you’re not root, some of the useful things are inaccessible.

Re: So, what can you do with a process ID?

#26
post #25
post #16

Earlier quoted context omitted.

If /proc is mounted in the container you can grab the same information (more tediously) by looking at /proc/

Some things are there, but real tedious, yes. I haven’t found something convenient and if you’re not root, some of the useful things are inaccessible.

Could you copy in (or sideload) a statically linked "top" binary?
Post reply on HN