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. A device file contains no data.
2. Which command is used by the shell for manipulating positional parameters?
3. Which option is used with du command for finding only the summary of disk usage by a specific directory?
4. ____ option is used with a test for checking if the file exists and has the size greater than zero.
5. For adding a new user to the system, we have to use ____ command.
6. The name of the script is stored in which special parameter?
7. The ____ allows us to read data from the same file containing the script.
8. What is the login name of system administrator?
9. ____ command is the appropriate way to interrupt a program.
10. Which one of the following is an internal command?
11. Which command is used for changing filename extensions?
12. To know the exit status of a command, we can use ____
13. All the device files are stored in _____
14. The set of routines needed to operate a specific device is known as ________
15. The syntax for using && is ______________
16. Every time shift command is used, the leftmost variable is lost.
17. ___ option is used with df command for displaying the total amount of disk space in the file system in terms of Kilobytes.
18. Which command is used by the system administrator to set the date of the system?
19. Which option is used for checking if the file exists or not?
20. Where is the exit status of a command stored?
21. To run the script, we should make it executable first by using _____
22. Which of the following functionalities is carried by the root user?
23. When we log in as root user we are placed in ____
24. Which of the following is used for storing the number of positional parameters?
25. case can also be used for matching multiple patterns.