Explain command to view process running?
No Answer is Posted For this Question
Be the First to Post Answer
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:
Enlist some filename manipulation commands in unix.
what are the different commands used to create files?
What is the use of pipes?
What do you mean by zambie process?
How do I use nslookup?
Is ‘du’ a command? If so, what is its use?
How do you find which version and name of unix you are using at the command prompt?
How do you grep recursively?
What is the pipe command?
What is the function of grep command in unix?
What is file system in unix??