4

ps aux | grep mongo

in zsh, for example, outputs

/usr/local/bin/mongod --logpath /var/db/mongodb/mongod.log --logappend --config /usr/local/etc/mongodb.conf --dbpath /var/db/mong

You can see that it runs off the screen and gets cutoff at the end.

In FreeBSD, how can I see the full output?

mareoraft
  • 3,474
  • 4
  • 26
  • 62

1 Answers1

2

Use the -w option (repeated if necessary). Try:

ps auxwww | grep mongo

See the manual page for more.

Richard Smith
  • 45,711
  • 6
  • 82
  • 81
  • `ps auxww | grep mongo` works too! Thank you! I heard people say to use `-w` once or twice before, but I didn't understand that the `auxww` stuff were options. Because typically options are preceded by a dash, but in this case they are not. Very strange that there's no dash. – mareoraft Jan 22 '16 at 03:58