What is ctrl d?
No Answer is Posted For this Question
Be the First to Post Answer
Which unix command to make a new directory?
What does this command do,"$more readme.txt“?
How to setup Disk space as well as memory in solaris10?
How do you remove a directory?
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?
What command a user use to view a long text file one page at a time in UNIX?
Through which command will redirect output to bOth screen and files at the same time?
How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?
A file has 1000 lines and i want to display only 1st line how to do it? pls ..tel me
Will rm -r* removes hidden files?
What is the use of sed 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: