What is ctrl d?
No Answer is Posted For this Question
Be the First to Post Answer
What is an Unix command to convert HEX value to ASCII value located in any flat file.
How to remove a crontab file?
How to identify whether a file is normal file or directory?
what is the cmd to display the last exit status in UNIX?
How to view the hidden files in /etc directory?
distinguish between interrupts and exceptions?
What is the difference between Shell Programming and Shell scripting?
10 Answers HCL, TCS, Wipro,
which command is used to change group?
how to sort the content of the file based on numeric values
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 command to find hidden files in the current directory?
which command is used to identify the type of the file?