4

I've been using top with -c to view the command that started the process. Some commands with long argument lists get cut off though. Is there a way to see these on full? On screen or written to a file is fine.

MorayM
  • 155

2 Answers2

3

Two possibilities spring to my mind:

  1. With top, you can use the cursor keys to scroll to the right, providing more space for the command column.
  2. If you don't need the dynamic output of top, try the classic ps -efw, perhaps in combination with grep.
Murphy
  • 2,649
  • Hah, I never noticed you can scroll horizontally as well as vertically! ps -efw is more useful though as I can pipe it through grep and out to files. – MorayM Feb 19 '20 at 09:14
  • With top, the command is getting cut off at 16 characters, com.apple.wifi.d, and who knows how much longer this string is, no amount of scrolling helps. With ps -efw, it is still cut off at /System/Library/PrivateFrameworks/ComerceKit.framework/Versions/A/Resources/store -- cannot get filename either way. – Alex Nov 10 '22 at 13:16
  • ps -e did the trick, thanks! – Alex Nov 10 '22 at 13:28
2

You can (I'm on Linux Mint, CentOS could be different) with gnome-terminal do this:

  1. Press f. You will get a list of columns. Navigate through the with arrow keys and press Space bar to select and unselect which columns to be displayed.

    enter image description here

  2. Use q or Esc to end.

  3. Press Ctrl + + or Ctrl + - to increase or decrease the font size.