LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-02-2009, 03:28 AM   #1
fjkum
Member
 
Registered: Feb 2006
Posts: 38

Rep: Reputation: 15
How to find out what processes run by a user?


I issued a command "who" to find outwho has logged in to my system. But how can I find out what processes are currently running by that particular user?
 
Old 04-02-2009, 03:30 AM   #2
Maligree
Member
 
Registered: Mar 2008
Distribution: Gentoo, CentOS, Fedora, Arch
Posts: 231
Blog Entries: 1

Rep: Reputation: 42
Check out ps.
 
Old 04-02-2009, 03:38 AM   #3
maxy7710
Member
 
Registered: Jan 2008
Location: Mumbai, india
Distribution: REDHAT, FEDORA,SUSE, UBUNTU, ORACLE ENTERPRISE LINUX & SOLARIS 10
Posts: 130

Rep: Reputation: 17
ps -ef | grep "command"
 
Old 04-02-2009, 04:22 AM   #4
ic_torres
Member
 
Registered: Nov 2005
Location: ABAP
Distribution: slackware 12.0, Vector Linux STD 6.0 and 5.8, ZenWalk 4.6.1, OpenBSD 3.9
Posts: 389

Rep: Reputation: 34
Quote:
Originally Posted by fjkum View Post
I issued a command "who" to find outwho has logged in to my system. But how can I find out what processes are currently running by that particular user?

use the "-U" command in ps it allows you to display the process used of the specific user
 
Old 04-02-2009, 04:54 AM   #5
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
Or try the command
Code:
w
which shows who is logged on and what they are doing.
 
Old 04-03-2009, 03:08 AM   #6
fjkum
Member
 
Registered: Feb 2006
Posts: 38

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by colucix View Post
Or try the command
Code:
w
which shows who is logged on and what they are doing.
Ah-ha! w is what I am looking for!
I can't believe such a short command and easily forgotten.
 
Old 04-03-2009, 03:11 AM   #7
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Rep: Reputation: 51
ps -auxf | grep -i "<psname>
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
A lot of processes run automatically when I run a single process. dalvirgautam Linux - Enterprise 4 12-01-2006 07:10 PM
How to find old processes ? hinetvenkat Linux - Software 2 06-20-2006 08:27 AM
Find processes paraiso Linux - Newbie 9 04-28-2005 04:36 PM
How do I limit the amount of processes a user can run? houler Slackware 26 04-04-2005 09:02 PM
How do I create an user to run processes (ONLY)? eantoranz Linux - Security 4 01-04-2005 08:03 PM


All times are GMT -5. The time now is 06:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration