LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-17-2008, 02:18 AM   #1
elainelaw
Member
 
Registered: Jan 2008
Posts: 258

Rep: Reputation: 30
system process


I know the path /proc have the user process in it , I use ll /proc and grep my login id , there are some process is display , but I found that some of these process is not real process , if I su other user then grep my_id again , it only display process id - 18257 , 18258 , these two process are really the process that I used in the system , can advise what make the difference ? how can I use my login id to grep my process without other unrelated process shown ?
Thx in advance.

$ ll /proc |grep my_id
dr-xr-xr-x 3 my_id edp 0 Jan 17 15:49 14518
dr-xr-xr-x 3 my_id edp 0 Jan 17 15:49 16816
dr-xr-xr-x 3 my_id edp 0 Jan 17 15:49 18255
dr-xr-xr-x 3 my_id edp 0 Jan 17 15:49 18256
dr-xr-xr-x 3 my_id edp 0 Jan 17 15:49 18257
dr-xr-xr-x 3 my_id edp 0 Jan 17 15:49 18258

su - ora_id
$ ll /proc |grep my_id
dr-xr-xr-x 3 my_id edp 0 Jan 17 15:49 18257
dr-xr-xr-x 3 my_id edp 0 Jan 17 15:49 18258
 
Old 01-17-2008, 04:02 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
In any shell that sets the USER variable to `id -u` use for instance 'pgrep -lU $USER', or if you like a tree view 'ps f --user $USER'.
 
  


Reply



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
Process System Time from ps? kmand Linux - Software 4 04-21-2009 09:53 AM
Runaway X process freezes system devoncatt Linux - General 1 10-18-2005 04:28 PM
Process System cpu rajesht Linux - General 1 05-19-2005 09:16 AM
system is getting hanged during booting process b0nd Linux - Newbie 5 04-14-2005 06:08 AM
how to get Total no of process in system arb Linux - General 1 09-17-2003 08:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:32 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
Open Source Consulting | Domain Registration