Total Questions : 20
Expected Time : 20 Minutes

1. How do you declare and use a variable in a shell script?

2. Explain how to handle signals in a shell script for graceful termination.

3. What command is used to display the manual for a command in a shell script?

4. How can you perform floating-point arithmetic in a shell script?

5. Which command is used to print the last lines of a file in a shell script?

6. Explain how to use the 'select' construct for menu-driven scripts in advanced shell scripting.

7. How can you perform a non-blocking read from a file descriptor in a shell script?

8. What is the purpose of the 'paste' command in shell scripting?

9. What does the shebang line '#!' specify in a shell script?

10. What is the purpose of the 'alias' command in a shell script?

11. What command is used to display the current working directory in a shell script?

12. How can you pass command-line arguments to a shell script?

13. What does the command 'grep' do in shell scripting?

14. How do you implement dynamic function calls in a shell script?

15. How do you dynamically generate function names in a shell script?

16. What does the 'shift' command do in shell scripting?

17. What is the purpose of the 'awk' command in shell scripting?

18. How can you implement error handling in a shell script for better debugging?

19. In a shell script, how do you run a script located in the current directory?

20. What does the 'tee' command do in a shell script?