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 makes top 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.