1. Which system call is used to run a new program?
2. Which system call is used by the parent process to wait for the child process to complete?
3. Redirection is a process of switching of the standard stream of data.
4. How many files are used for representing different standard streams?
5. Which stream is connected to the display?
Correct Answer is : standard output
6. Which stream is used for representing error messages?
Correct Answer is : standard error
7. The command wc < sample.txt will count data from the file sample.txt.
8. Which symbol is used for taking input from standard input?
9. Which of the following symbol(s) can be used to redirect the output to a file or another program?
Correct Answer is : |, > and >>
10. The >> symbol is used to overwrite the existing file if it exists.
Correct Answer is : FALSE
11. Which file descriptor is used to represent standard error stream?
12. We can redirect the error message to file named newfile using __________ command.
Correct Answer is : cat foo 2>errorfile
13. The category of commands which uses both standard input and standard output are called ____
Correct Answer is : filters
14. The contents of file001 are:
232
25*50
What will be the contents of result.txt?
bc < file001 > result.txt
Correct Answer is : 429467296, 1250
15. Which of the following files are known as special files in UNIX?
Correct Answer is : /dev/null and /dev/tty
16. The size of /dev/null is always zero.
17. Which symbol is used to redirect error messages to /dev/null?
18. Which file is used for indicating terminals?
Correct Answer is : /dev/tty
19. Which symbol is used to connect different streams?
20. We can use the > symbol along with pipe in a command.