Linux Foundation Certified System Administrator (LFCS) — Question 85
Which of the following commands is used to change options and positional parameters for a running Bash?
Answer options
- A. history
- B. set
- C. bashconf
- D. setsh
- E. envsetup
Correct answer: B
Explanation
The correct answer is B, as the 'set' command in Bash is specifically designed to change shell options and positional parameters. The other options do not perform this function: 'history' displays command history, 'bashconf' and 'setsh' are not standard Bash commands, and 'envsetup' is not related to changing options in a running Bash session.