Which is the command used to find out currently executing
Process in UNIX?
Answers were Sorted based on User's Feedback
Answer / divya
ps -ef
here -f means Full listing showing the PPID(Parent PID) of each process
-e means All processes including user and system
Is This Answer Correct ? | 0 Yes | 0 No |
Which command will you use to change the permissions on file?
In UNIX, what is the command to edit contents of the file?
if we create a file, in that 10 rows(means 1,2,....9,10 like). i want 7 row exactly, which command use in unix? plz send this question.
What does sed command do in unix?
what do you understand by 'unix is a portable os'?
What is grep r?
can we use cat command as an editor ..???
Name the general commands in using unix os for a beginner?
What is merge command in unix?
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:
What is the use of find command in unix?
what do you understand by 'building block primitive'?