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 |
what will be the output of ls ~/..
What is ‘ps’ command for?
Give the command for finding the current date.
What is the use of touch command in there?
what are wild cards?
When the shell is reading the command line what is the difference between text enclosed between double quotes ( ” ) and text enclosed between signal quotes ( ’ )?
What are the commands in UNIX to list the files in a Directory?
How do I delete files from command prompt?
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
hw will u use awk in replacing cahrs and files
What is the difference between cat command and more command?