Solved

Total number of Processes

Posted on 2000-03-14
2
174 Views
Last Modified: 2013-12-27
How can I find the total number of processes a user has on a system? Current system is running Sun Solaris v2.6.

Thanks.
0
Comment
Question by:ortize
  • 2
2 Comments
 
LVL 20

Accepted Solution

by:
tfewster earned 50 total points
ID: 2617723
ps -fu username | wc -l
0
 
LVL 20

Expert Comment

by:tfewster
ID: 2617855
Hi ortize - I should also have said that that command may not give you the whole picture;
- If the user is logged in via telnet, there will be an extra telnetd process, owned by root, that doesn't show up in the list;
- If the user has used "su -" to become another user, processes for the "new" user won't appear in the list.

You may also like to try using "top" or "ps -e -o user,pid,pcpu,vsz,time,comm |sort -r +2" to see which processes are using most CPU time

Regards, Tim
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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…

914 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

19 Experts available now in Live!

Get 1:1 Help Now