Home > Unix Programming > Quizzes > Unix Basics Practice Test: Shell
Unix Basics Practice Test: Shell
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 62% Most missed: “On a UNIX system, there can be ____ shells running simultaneously.”
Quiz questions on shell basics, pattern matching, escaping and quoting, redirection and pipes, command substitution and shell variables. A Unix shell is a command-line interpreter that provides a command-line user interface for Unix-like operating systems. It's both an interactive command language and a scripting language. The shell is used by the operating system to control the execution of the system using shell scripts. Users typically interact with a Unix shell using a terminal emulator. However, direct operation via serial hardware connections or Secure Shell are common for server... Show more
Unix Basics Practice Test: Shell
Time left 00:00
25 Questions

1. Shell provides us with an interface to the operating system.
2. Which of the following shell doesn’t support the command substitution using $ recommended by POSIX?
3. Which file is used for indicating terminals?
4. What is the default symbol for command prompt in Bourne shell?
5. rm chap0[1234] will delete all of the following files.
chap01 chap02 chap03 chap04
6. Which symbol is used to redirect error messages to /dev/null?
7. POSIX recommends the use of ____ instead of archaic `command ` for command substitution.
8. Which of the following is a correct initialization of variables to null strings?
9. Command substitution requires the command to use ________
10. Which of the following is not a wild-card?
11. Which symbol is used for evaluation of variables?
12. Which shell is the most common and best to use?
13. The variable assignment as x = 10 (whitespace on both sides of =) will work if we are not using C shell?
14. Which of the following command will list all the hidden filenames in our directory having at least three characters after the dot (.)?
15. tee is an internal command.
16. Which of the following shell doesn’t support ! symbol for negating the character class?
17. In UNIX there are ___ major types of shells.
18. We can use the > symbol along with pipe in a command.
19. What does the following command do?
$ echo *
20. A variable can be removed using _____
21. Which of the following files are known as special files in UNIX?
22. Which of the following symbol is used for negating the character class?
23. The >> symbol is used to overwrite the existing file if it exists.
24. Shell enables one or more arguments to be obtained from the standard output of another command. This feature is called _________
25. To remove the file named my document.txt, which one of the following commands will be used?