in UNIX,How do you check for processes started by
particular user suppose the user name is 'suresh'?
Answers were Sorted based on User's Feedback
Answer / subbareddy kake
up to now all answers correct.I saw result of all commands.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / abhijit (pune)
ps -fu username | grep -i processname
and
ps -ef | grep user | grep processname
| Is This Answer Correct ? | 0 Yes | 0 No |
what do you understand by 'unix is a portable os'?
1-how will you display a file whose name is starting with '- '? 2-how will you add a patten at end of every line in vi editor?
In Unix file permissions what does the second field denotes?
what are wild cards?
What is pipe command in unix?
What is the use of awk command in unix?
What is Unix, and how does it differ from other operating systems?
Is it inbetween or in between?
What is the unix command to confirm a remote host is alive or not?
What is a bash command?
What is grep short for?
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<stdlib.h> # include <stdio.h> 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: