Show full process name in top

command-line-interfaceprocesspstop

I'm running a Rails stack on Ubuntu.

When I call ps -AF, I get a descriptive process name set by the Apache module like

00:00:43 Rails: /var/www...

which is really helpful in diagnosing load issues.

But when I call top, the same process shows up simply as

ruby

Is there any way to get the ps -AF process name in top?

Best Answer

While top is running, you can press c to toggle between showing the process name and the command line. To remember the toggle state for next time, press W to save the current configuration to ~/.toprc.