Over a million developers have joined DZone.

Bash Process Status For Ruby

DZone's Guide to

Bash Process Status For Ruby

Free Resource
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

Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}