in reply to (OT) How to use ps unix command to see the task full command

I am trying to use 'ps' unix command to see the full command the task used.

It seems that nobody has mentioned Proc::ProcessTable yet, which greatly eases this kind of tasks. Alternatively under Linux, but I don't know under how many other unices, you can check <c>"/proc/$pid/cmdline".

  • Comment on Re: (OT) How to use ps unix command to see the task full command

Replies are listed 'Best First'.
Re^2: (OT) How to use ps unix command to see the task full command
by Anonymous Monk on Dec 14, 2011 at 00:06 UTC
    Try first setting the column with of your terminal to something very wide, e.g. 'export COLUMNS=125', press Enter, then 'ps A' This worked on my Mac's Terminal app to see the full path with the terminal window expanded edge to edge. Using only the 'A' parameter eliminates other column data, making best use of your wide terminal.