Total Questions : 50
Expected Time : 50 Minutes

1. What does the 'chmod' command do in a shell script?

2. How do you redirect the standard error stream in shell scripting?

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

4. How can you create a multi-dimensional array in a shell script?

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

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

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

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

9. Explain the purpose of the 'coproc' command in advanced shell scripting.

10. In a shell script, how do you assign a value to a variable?

11. What is the purpose of the 'shopt' command in advanced shell scripting?

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

13. How do you check the disk space usage in a shell script?

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

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

16. Explain the purpose of the 'trap' command in advanced shell scripting.

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

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

19. How do you read input from the user in a shell script?

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

21. What is the purpose of the 'getopts' command in advanced shell scripting?

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

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

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

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

26. What is the purpose of the 'shebang' (#!) in the first line of a shell script?

27. How can you perform arithmetic operations in a shell script?

28. In a shell script, how do you check the current date and time?

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

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

31. Explain the purpose of the 'process substitution' feature in advanced shell scripting.

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

33. What is the purpose of the 'echo' command in a shell script?

34. Explain the significance of the 'readonly' command in advanced shell scripting.

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

36. What is the purpose of the 'grep' command in a shell script?

37. What is the purpose of the 'declare' command with the '-a' option in advanced shell scripting?

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

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

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

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

42. What is the purpose of the 'readonly' command in advanced shell scripting?

43. How do you declare and use a constant in a shell script?

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

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

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

47. How do you use 'if-else' conditions in a shell script?

48. Which command is used to copy files and directories in a shell script?

49. What command is used to move or rename files and directories in a shell script?

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