Mike McCarty wrote:
For example, on my machine I just did this: $ ps PID TTY TIME CMD 6022 pts/3 00:00:00 bash 6085 pts/3 00:00:03 xcdroast 6229 pts/3 00:00:00 ps $ cat /proc/6022/cmdline bash$
TRIVIA:Since the contents of "cmdline" are null separated, the best way to examine those files is probably:
tr '\0' ' ' < /proc/<pid>/cmdline ; echo"tr" will convert the 0 bytes to space characters, which will allow you to see the arguments better.