exam questions

Exam LX0-103 All Questions

View all questions & answers for the LX0-103 exam

Exam LX0-103 topic 3 question 29 discussion

Actual exam question from CompTIA's LX0-103
Question #: 29
Topic #: 3
[All LX0-103 Questions]

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

  • A. history
  • B. set
  • C. bashconf
  • D. setsh
  • E. envsetup
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
linux_admin
2 years, 2 months ago
The set command is a built-in command in Bash that can be used to modify various settings and attributes of the shell, such as the options used by the shell, the positional parameters (i.e., command-line arguments), and other settings. For example, you can use the set command to turn on or off various shell options, such as the "verbose" option (set -v) or the "ignore case" option (set -i). You can also use the set command to change the values of positional parameters, such as $1, $2, etc., which represent the command-line arguments passed to the shell. Note that the effects of the set command are only temporary and apply to the current shell session. If you want to make permanent changes to the settings and options of Bash, you will need to modify the shell configuration files (such as ~/.bashrc or /etc/bash.bashrc) that are loaded when the shell starts up.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago