Through which command will redirect output to bOth screen
and files at the same time?
Answers were Sorted based on User's Feedback
Answer / amit kumar
Using 'tee' command we can see the output on the screen and
at the same time and redirect the output to files.it always
shows two outputs.
| Is This Answer Correct ? | 2 Yes | 0 No |
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 command is used to replace the existing string with some other?
which command is used to identify the type of the file?
What is grep short for?
Which command is used to restrict incoming messages?
How do I search a whole word in vim?
Write a command to find all of the files which have been accessed within the last 30 days.
What command is used to check the current users?
what are the different commands used to view the contents of a file?
Write a command that will display files in the current directory, in a colored, long format.
what is the use of "grep" command?
What is the unix command to confirm a remote host is alive or not?