Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Extend ps output to more than 80 characters in Solaris 8

How do you extend the output of ps -fe in Solaris so that it displays more than 80 characters? My process has several arguments and the process name could not be displayed anymore.

like image 1000
jasonline Avatar asked Apr 08 '11 01:04

jasonline


People also ask

What is stime in ps command?

PPID - The ID of the parent process. C - Same as %CPU , the process CPU utilization. STIME - Same as START , the time when the command started.

What is ps aux?

The ps aux command is a tool to monitor processes running on your Linux system. A process is associated with any program running on your system, and is used to manage and monitor a program's memory usage, processor time, and I/O resources.

What is the output of ps?

ps stands for process status. It reports a snapshot of current processes. It gets the information being displayed from the virtual files in /proc filesystem. The output of ps command is as follows $ ps. PID TTY STAT TIME CMD.

Which of the following command is used to see PID PPID of currently executing processes?

ps command is used to list the currently running processes and their PIDs along with some other information depends on different options.


2 Answers

You can't display them with the default ps (/usr/bin/ps) which is a SVR4 regular one.

To get the full argument line, use the BSD ps (UCB = University of California at Berkeley):

/usr/ucb/ps -alxwww
like image 97
jlliagre Avatar answered Oct 11 '22 13:10

jlliagre


We have finally fixed this in Solaris; as of Solaris 11.3 SRU 5, all original argument vectors as well as the environment variables can be retrieved from /proc. ps will now print all of the command line.

Fixed in Solaris 11.3 SRU 5

like image 36
Casper Dik Avatar answered Oct 11 '22 14:10

Casper Dik