What does the command '$ls | wc –l > file1' do?
No Answer is Posted For this Question
Be the First to Post Answer
Can you explain a little bit about command substitution?
How does shebang work?
How would you find the size of a file or directory?
what is the difference between npar and vpar in HP-UX?
how to sort the content of the file based on numeric values
What do chgrp command do?
What is awk used for?
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:
Which command is used to copy files?
how to find largest file?
14 Answers HCL, Microsoft, Thomson Reuters,
What is command substitution?
what is the cmd to display the last exit status in UNIX?