Skip to main content
Linux AdministrationMediumSingle Choice

Linux Administration Question

Statement

Which of the following commands is used to change options and positional parameters for a running Bash?

#set#bash#positional-parameters#shell-options
A

history

B

set

Correct
C

bashconf

D

setsh

E

envsetup

Resolution & Explanations

The set command is a built-in shell command used to set or unset values of shell options and positional parameters. For example, set -x enables debugging, and set -- arg1 arg2 replaces the current positional parameters.