Over a million developers have joined DZone.

Bash Process Status For Ruby

This is nothing ground-breaking, I'm just tired of delving into MAN every time I want to get exact information about my ruby (or any other) processes... so here's a simple ps that gets the process' (in this case ruby, but easily subsitutable by changing the grep) owner,pid,real memory size (in 1024 byte chunks), cpu, memory and full command name (in that order).

ps -er -o "user,pid,rss,%cpu,%mem,command" | grep ruby

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}