Total Questions : 30
Expected Time : 30 Minutes

1. How do you terminate a running process in a shell script?

2. In a shell script, how do you check if a variable is empty?

3. How do you implement parallel processing in a shell script?

4. How do you navigate to the home directory in a shell script?

5. In a shell script, how do you concatenate two strings?

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

7. Which command is used to remove a file in a shell script?

8. How can you create a timestamp in a shell script?

9. What is the purpose of the 'basename' command in shell scripting?

10. What is the purpose of the 'case' statement in shell scripting?

11. Which command is used to display the contents of a file in a shell script?

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

13. Which command is used to create a new directory in a shell script?

14. How can you determine the number of CPU cores available in a shell script?

15. Explain how to implement a retry mechanism for a command in a shell script.

16. How do you check the version of the shell in a shell script?

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

18. What is the purpose of the 'coproc' command in advanced shell scripting?

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

20. What does the 'expr' command do in shell scripting?

21. In a shell script, how do you read user input?

22. How do you assign the output of a command to a variable in a shell script?

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

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

25. What is the purpose of the 'history' command in a shell script?

26. How do you check if a variable is set in a shell script?

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

28. What is the purpose of the 'cut' command in shell scripting?

29. What command is used to find files in a shell script based on various criteria?

30. How do you handle concurrency in a shell script?