Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Linux Foundation LFCS Exam - Topic 5 Question 94 Discussion

Posted by Kimberlie on Jan 26, 2025 at 03:24 PM

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

Suggested Answer: E

Get Premium LFCS Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
34 comments · newest first
AV
Avery 11 months ago
History just shows past commands, not options.
NI
Nickolas 11 months ago
I thought it was setsh for a second!
LA
Lasandra 12 months ago
Wait, is bashconf even a real command?
MA
Mammie 12 months ago
Totally agree, set is the command!
RA
Raul 1 year ago
The correct answer is B, set.
LU
Luis 1 year ago
I feel like "history" is related to viewing commands, not changing options, but I could be mixing it up with something else.
LE
Lettie 1 year ago
"bashconf" doesn't sound right to me; I don't recall seeing that in any of the materials we covered.
DE
Deeann 1 year ago
I remember practicing with similar questions, and "set" was definitely mentioned as a command for changing options in Bash.
VE
Veta 1 year ago
I think the command to change options is "set," but I'm not entirely sure if it applies to positional parameters too.
TW
Twanna 1 year ago
Ah, this is a good one. The key here is that the question is asking about changing options and parameters for a running Bash shell. That immediately makes me think of the set command, which is used to set and unset shell options and positional parameters. I'm confident that B. set is the correct answer.
NO
Nohemi 1 year ago
I'm a bit confused by this question. I know there are a few different commands that can be used to modify Bash settings, but I'm not sure which one is the most appropriate here. I'll have to review my notes and try to eliminate the options that don't seem quite right.
NO
Noah 1 year ago
Okay, let me think this through step-by-step. The question is asking about changing options and positional parameters for a running Bash shell. That sounds like it's referring to the set command, which can be used to modify shell options and variables. I'm going to go with B. set.
DO
Dorathy 1 year ago
Hmm, I'm not sure about this one. I know set is used to change shell options, but I'm not sure if it's the only command that can do that. I'll have to think this through carefully.
CL
Claudio 1 year ago
This looks like a straightforward Bash question. I'm pretty confident the answer is B. set.
BR
Brittney 2 years ago
E) envsetup? That sounds more like an environment setup script, not a command to change Bash options. B) set is the way to go.
HO
Hollis 1 year ago
↳ replying to Brittney
I've never heard of E) envsetup, but B) set is a common command for changing Bash options.
KI
Kimbery 1 year ago
↳ replying to Brittney
I think C) bashconf might also work for changing Bash options.
MA
Margurite 1 year ago
↳ replying to Brittney
Yeah, B) set is the one you should use to change Bash options.
SH
Shawnda 1 year ago
↳ replying to Brittney
I agree, B) set is the correct command to change Bash options.
SE
Selene 1 year ago
↳ replying to Brittney
I agree, B) set is the correct command for that.
BO
Boris 1 year ago
↳ replying to Brittney
B) set is definitely the right command to change Bash options.
MA
Margot 2 years ago
D) setsh looks like it could be a command, but I'm not familiar with it. B) set is the winner here.
UL
Ula 2 years ago
Haha, 'bashconf'? Really? As if Bash needs a special configuration command. It's gotta be B) set.
SH
Shakira 2 years ago
I always get confused between set and env. But set sounds more like the right command for this.
RO
Rodolfo 1 year ago
↳ replying to Shakira
Yeah, 'set' is the correct command in this case.
HE
Helene 1 year ago
↳ replying to Shakira
I always get confused between 'set' and 'env' as well.
AN
An 1 year ago
↳ replying to Shakira
I agree, 'set' is used to change options and positional parameters for a running Bash.
NO
Novella 2 years ago
↳ replying to Shakira
I think 'set' is the right command for this.
JO
Jospeh 2 years ago
B) set is the correct answer. It's the command we use to change shell options and positional parameters in Bash.
BR
Brandee 1 year ago
↳ replying to Jospeh
Yes, you're right. B) set is the correct answer.
TI
Tiffiny 2 years ago
↳ replying to Jospeh
I think it's B) set.
TH
Thea 2 years ago
I'm not sure, but I think it might be C) bashconf. Can someone explain why set is the correct answer?
EL
Elden 2 years ago
I agree with you, Elly. The set command is used to change options and positional parameters in Bash.
EL
Elly 2 years ago
I think the answer is B) set.
0/2000 characters

Save Cancel