Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm running a rails stack on ubuntu.

When I 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 top, the same process show up simply as


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

share|improve this question
up vote 86 down vote accepted

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.

share|improve this answer
thanks, this makes my life so much easier! – Ben K. May 18 '10 at 16:14

This is more of a general suggestion, than an answer:

Try out htop. It shows the full process name by default and I think it's much easier to use.

share|improve this answer
great! much better than the raw 'top'. thanks a lot! – Siwei Shen May 17 '13 at 0:32

When running top type c to toggle command line/process.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.