Solved

Total number of Processes

Posted on 2000-03-14
2
178 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 21

Accepted Solution

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

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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…

680 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