Solved

linux, how to show column headers in the ps command

Posted on 2011-09-27
5
2,357 Views
Last Modified: 2016-02-10
I am in FreeBSD, i did a "ps auxwww", but I don't know what each column means.  How do I find out the column names.
0
Comment
Question by:rgbcof
5 Comments
 
LVL 16

Accepted Solution

by:
santoshmotwani earned 200 total points
ID: 36713836
USER     PID %CPU %MEM   VSZ   RSS  TT  STAT STARTED      TIME COMMAND
root      10 100.0  0.0     0     8  ??  RL   14Aug11 64164:29.79 [idle: cpu1]


hope this helps :

http://wiki.vpslink.com/Linux_Command_Reference:_ps
0
 
LVL 3

Assisted Solution

by:YellowShoe
YellowShoe earned 150 total points
ID: 36713856
Here is info from FreeBSD site
http://www.freebsd.org/cgi/man.cgi?query=ps&apropos=0&sektion=0&manpath=FreeBSD+8.2-RELEASE&arch=default&format=html

-w      Use 132 columns to display information, instead of the default which is your window size.  If the -w option is specified more than once, ps will use as many columns as necessary without regard for your window size.

-x      When displaying processes matched by other options, include processes which do not have a controlling terminal.

-u      Display information associated with the following keywords: user, pid, %cpu, %mem, vsz, rss, tt, state, start, time, and command. The -u option implies the -r option.

-r      Sort by current CPU usage, instead of the combination of controlling terminal and process ID.

-a      Display information about other users' processes as well as your own.  This will skip any processes which do not have a controlling terminal, unless the -x option is also specified.
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 36715756
ps auxwww | more
0
 
LVL 38

Assisted Solution

by:wesly_chen
wesly_chen earned 150 total points
ID: 36720710
The headers are on the first row.

ps auxwww | head -1
0
 

Author Closing Comment

by:rgbcof
ID: 36813217
Great help.  Thanks.
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now