1. Which command is used for extracting the details of the operating system?
Correct Answer is : uname
2. The sequences of directories that a shell searches while looking for a command is specified in the PATH variable.
3. Options are also arguments but begin with a -.
4. Which of the following is not a valid option of uname?
5. How can we specify more than one command in the command line at the same time?
Correct Answer is : using ;
6. Which command is used to display the documentation of commands in UNIX?
7. Which command is used for displaying date and calendar in UNIX?
Correct Answer is : date and cal
8. What is the output of who command?
Correct Answer is : display information about users who are currently logged in.
9. What are meta-characters?
Correct Answer is : special characters having predefined meaning to the shell
10. Which command is used for displaying date in the format dd/mm/yyyy ?
Correct Answer is : date +”%d/%m/%Y”
11. Which of the following symbols are used for searching a pattern in vi?
Correct Answer is : / and ?
12. ____ searches for a first instance of a pattern in forwarding direction.
13. ____ searches for a first instance of a pattern in the backward direction.
14. Which command is used for repeating the search in the same direction?
15. Which command is used to reverse the direction of repeating the search?
16. Substitution command is an ex-mode command.
17. Which of the following symbol is used for substitution command?
18. Which of the following is a correct syntax for performing substitution on a file?
Correct Answer is : :address/source_pattern/target_pattern/flag
19. We cannot leave the flag field empty while performing the substitution.
Correct Answer is : FALSE
20. The target pattern is optional.