How do you know about running processes of a particular
user?
Answers were Sorted based on User's Feedback
Answer / lekshmanan s
ps -ef|grep $(whoami)
$(whoami) gives the username and that is grep(ed or
searched) in ps -ef
Is This Answer Correct ? | 4 Yes | 1 No |
Answer / punit sharma
ps -u <username> can provide the processes running for the
user.
ps -fu <username> can provide the full listing of the
processes running for the user
Is This Answer Correct ? | 1 Yes | 1 No |
How to get the last ten lines of a file using awk utility?
How do you remove a crontab file?
What are the differences among a system call, a library function, and a unix command?
Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?
In UNIX, what is the command to kill a process?
How to rename files and folders?
How can i know my Filesystem and its current usage in my prod UNIX system?
distinguish between physical addresses and logical address?
23 Answers College School Exams Tests, CTS, Infosys, SAX, TATA, TCS,
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:
describe the escaping sequence characteres in unix
What command will change your prompt to myprompt?
What is the command to compare two files in unix?