Home > Unix Programming > Quizzes > Unix Basics Practice Test: Shell Programming
Unix Basics Practice Test: Shell Programming
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 100% Most missed: “Which command is used to find out the consumption of a specific directory?”
Quiz questions on shell programming using read command and command line arguments, logical operators and conditional execution, using test and [ ] to evaluate expressions, case and expr commands, administrator specific commands and privileges. A Unix shell is a command-line interpreter or shell that provides a command line user interface for Unix-like operating systems. The shell is both an interactive command language and a scripting language, and is used by the operating system to control the execution of the system using shell scripts. Shell programming is a powerful tool that can be... Show more
Unix Basics Practice Test: Shell Programming
Time left 00:00
25 Questions

1. ___ option is used with df command for displaying the total amount of disk space in the file system in terms of Kilobytes.
2. test and [ ] can be used for string comparison.
3. Which of the following is performed by expr string handling’s function?
4. The superuser can set the sticky bit.
5. Which of the following operators are used for logical execution?
6. What are positional parameters?
7. What is the prompt for system administrator?
8. case can also be used for matching multiple patterns.
9. Which of the following option is used for checking if the file is writable or not?
10. To know the exit status of a command, we can use ____
11. Which of the following is used for creating user’s environment?
12. Every time shift command is used, the leftmost variable is lost.
13. ____ command is used by the superuser for changing root’s password.
14. Which one of the following option is used for AND operation in test command?
15. What is the login name of system administrator?
16. It is essential to use whitespaces when we use [].
17. ____ command is used for setting limits on file size.
18. Suppose x =10, then what will be the value of x$x$?
19. Which one of the following option is used for checking that the string is NULL string?
20. For adding a new user to the system, we have to use ____ command.
21. userdel is used for removing users from the system.
22. The ___ option in case statement matches any option not matched by the previous options.
23. expr is a _____ command
24. Which of the following is not a special parameter used by the shell?
25. Which of the following is false?