39

It there a way to display the complete command line in htop (e.g. in multiple lines or with a moving banner). With the default setting where only one line is displayed it isn't possible to distungish all processes, e.g. different java programs (because class or jar argument follows a bunch of arguments) or programs with long absolute path of binaries.

Omitting the full absolute path in favour of only the binary would be a compromise where distinction would not be optimal, but better in some cases.

I checked out the settings and the manpage and didn't find an option suitable in my understanding.

Kalle Richter
  • 2,100
  • 4
  • 20
  • 37
  • 1
    Something like this `for p in $(pidof java); do echo $p:; cat /proc/$p/cmdline| xargs -0 echo; done |less` to inspect pids commandline? – Alex Oct 02 '14 at 19:59

3 Answers3

46

As far as I know, the only way to show the full command line is to scroll right with the arrow keys or to use a terminal with a small font.

EDIT (thanks to @LangeHaare): You can use Ctrl-A and Ctrl-E to jump to the beginning and end the command line.

jofel
  • 26,513
  • 6
  • 65
  • 92
9

Just press the w key.

From the help available with F1:

w: wrap process command in multiple lines

Stephen Kitt
  • 411,918
  • 54
  • 1,065
  • 1,164
danykey
  • 91
  • 1
  • 1
6

ctrl+f and use arrow key to move left and right.

rosepark222
  • 61
  • 1
  • 1