1. . What is the primary function of a shell?
(A) Execute commands entered by the user
(B) Run shell scripts
(C) Manage files and directories
(D) Manage environment variables
2. . What is a shell script?
(A) A program written in a shell language that can be executed in the shell
(B) A program written in Python that can be executed in the shell
(C) A program that can only be executed in a graphical user interface
(D) A program that can only be executed in a terminal emulator
3. . What is input/output redirection in shells?
(A) Allowing users to redirect input and output to and from files
(B) Allowing users to redirect input and output to and from the Internet
(C) Allowing users to redirect input and output to and from other processes
(D) Allowing users to redirect input and output to and from the command history
4. . What are environment variables in shells?
(A) Variables that hold information about user preferences
(B) Variables that hold information about network connections
(C) Variables that hold information about shell commands
(D) Variables that hold information about the system or user environment
5. . What is job control in shells?
(A) Allowing shells to manage network connections
(B) Allowing shells to manage jobs and processes
(C) Allowing shells to manage user preferences
(D) Allowing shells to manage text processing tasks
6. . Which shell is the default shell in most Linux distributions?
(A) Zsh
(B) Bash
(C) Ksh
(D) Tcsh
7. . Which command is used to display the current working directory in the shell?
(A) dir
(B) ls
(C) pwd
(D) cd
8. . Which shell command is used to create a new directory?
(A) cat
(B) touch
(C) rm
(D) mkdir
9. . Which symbol is used in shell commands to represent the home directory?
(A) $
(B) *
(C) ~
(D) #
10. . Which command is used to list the files and directories in a directory?
(A) ls
(B) cd
(C) cp
(D) mv