1. Which option is used with the tail command for extracting bytes instead of lines?
2. To extract specific columns from a file, ____ command is used.
3. The expression cut -c -3 emp.lst will cut columns number _____
Correct Answer is : 45294
4. ____ option is used with the cut command for cutting fields.
5. What is the default delimiter used by the cut command for cutting fields?
6. Which option is used with the cut command for cutting field base on the value of our specified delimiter?
7. We have to specify whether we want to cut fields or columns while using cut command.
8. The following command will produce an error.
$ cut -d “|” -f 1,4 emp.lst
Correct Answer is : FALSE
9. Which one of the following commands is incorrect?
Correct Answer is : $ tail -c 500 foo
10. Which command is used for pasting files?
Correct Answer is : paste
11. Whatever we have cut using cut command can be pasted back using paste command but vertically.
12. paste command uses space as the default field delimiter.
Correct Answer is : FALSE
13. _____ option is used with paste command if we want to specify our own delimiter.
14. Which option is used with paste command for joining lines?
15. echo command is used for _________
Correct Answer is : displaying diagnostic messages
16. What are escape sequences?
Correct Answer is : special characters beginning with a \ (backslash)
17. Which of the following is not a valid escape sequence in UNIX?
18. Which command is used as an alternative to echo command?
Correct Answer is : printf
19. For what purpose bc command is used?
Correct Answer is : as a calculator
20. script command is used for___________
Correct Answer is : recording our session