Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Total number of Processes

Posted on 2000-03-14
2
Medium Priority
?
182 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 21

Accepted Solution

by:
tfewster earned 150 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
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 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.:
Suggested Courses

610 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