Solved

Total number of Processes

Posted on 2000-03-14
2
173 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
Comment Utility
ps -fu username | wc -l
0
 
LVL 20

Expert Comment

by:tfewster
Comment Utility
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

772 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

10 Experts available now in Live!

Get 1:1 Help Now