in UNIX,How do you check for processes started by
particular user suppose the user name is 'suresh'?

Answer Posted / abhijit (pune)

ps -fu username | grep -i processname
and
ps -ef | grep user | grep processname

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system. How can i findthe right soluion??? My pgm: #include # include int main() { int pid; pid=fork(); if(pid < 0) {exit(-1);} else if(pid==0) { printf("Child Process is Sleeping ..."); sleep(10); printf("Orphan Child's Parent ID : %u ",getppid()); } else { printf("Parent Process Completed ... %u ",getpid()); exit(0); } return 0; } Output:

1966


What is pipe command in unix?

892


What is in grep command?

843


What do chmod command do?

805


What is grep in bash?

766


What is the use of egrep command in unix?

814


What is the use of finger command?

816


Which command is used to copy files?

804


What is time_t?

779


Does cp command overwrite files?

823


How do I open a port?

767


Write a command that will display files in the current directory, in a colored, long format.

914


What does #!/ Bin sh do?

761


What is the use of sed command in unix?

822


What do chown command do?

780