Show full process name in top
Solution 1
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
.
Solution 2
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.
Solution 3
top -c -n 1
should give you what you want.
-c
: automatically toggles between command line and program name-n 1
: this makestop
to exit out immediately without showing the updates every 3 seconds (by default)
Solution 4
When running top type c to toggle command line/process.
Solution 5
You could either press c
while top is running or use htop
. But, if I may, give glances
a look as well. It could serve as an alternative.
I use it quite a bit and is really handy!
Related videos on Youtube
![chejaras](https://i.stack.imgur.com/95CG5.png?s=256&g=1)
chejaras
Updated on September 17, 2022Comments
-
chejaras almost 2 years
I'm running a Rails stack on Ubuntu.
When I call
ps -AF
, I get a descriptive process name set by the Apache module like00:00:43 Rails: /var/www...
which is really helpful in diagnosing load issues.
But when I call
top
, the same process shows up simply asruby
Is there any way to get the
ps -AF
process name intop
? -
Siwei about 11 yearsgreat! much better than the raw 'top'. thanks a lot!