How do I get the full width result for the *nix command "ps"?
I know we can specify something like --cols 1000
but is there anyway I can
the columns and just print out everything?
The output of ps also tells you the process ID of the background process and the terminal from which it was run. In its basic form, ps lists the following: Process ID (PID) A unique number assigned by UNIX to the process.
To capture a session with PuTTY, open up PuTTY. Under Session Logging, choose “All session output” and key in your desired log filename (the default is putty. log). This will create the file in the location you choose and begin logging everything from the session.
The simplest way to view text files in Linux is the cat command. It displays the complete contents in the command line without using inputs to scroll through it.
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.
Try ps -w -w aux
. The -w option sets the output to wide, and doing it twice makes the width unlimited. The "aux" part makes it show more information, and is (afaik) pretty standard mode to use. This is of course platform-dependant, the above works with procps version 3.2.7 on Linux.
Specify the w
option twice, if you're using BSD-style ps
. e.g., ps auwwx
. A different set of options apply when using System V ps
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With