Cyber Monday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

CompTIA Exam XK0-005 Topic 4 Question 36 Discussion

Actual exam question for CompTIA's XK0-005 exam
Question #: 36
Topic #: 4
[All XK0-005 Questions]

A file called testfile has both uppercase and lowercase letters:

$ cat testfile

ABCDEfgH

IJKLmnoPQ

abcdefgH

ijklLMNopq

A Linux administrator is tasked with converting testfile into all uppercase and writing it to a new file with the name uppercase. Which of the following commands will achieve

this task?

Show Suggested Answer Hide Answer

Contribute your Thoughts:

Ben
3 months ago
Yo, option D is the MVP here. Bet those other options are just trying to be fancy, but we don't need that. Keep it simple, folks!
upvoted 0 times
...
Eladia
3 months ago
Ah, the age-old question of converting a file to uppercase. D is the way to go, no doubt about it.
upvoted 0 times
Mila
2 months ago
I agree, tr '[a-z]' '[A-Z]' < testfile > uppercase is the way to go.
upvoted 0 times
...
Stanton
3 months ago
I think D is the correct command to convert the file to uppercase.
upvoted 0 times
...
...
Allene
3 months ago
Wait, why do we need to redirect the input and output files? Option D seems the most straightforward.
upvoted 0 times
Carman
3 months ago
Redirecting input and output files is necessary to save the changes to a new file. Option D is the correct command to use.
upvoted 0 times
...
Doyle
3 months ago
Option D seems like the best choice. It will convert all lowercase letters to uppercase.
upvoted 0 times
...
...
Barrie
4 months ago
I agree with Essie, D is the correct answer.
upvoted 0 times
...
Essie
4 months ago
But D converts lowercase to uppercase, which is what we need.
upvoted 0 times
...
Lonna
4 months ago
I disagree, I believe the answer is A.
upvoted 0 times
...
Muriel
4 months ago
Hmm, I'm not sure about the syntax of some of these options. I think I'll go with D just to be safe.
upvoted 0 times
Christa
4 months ago
Let's go with D to convert the file to all uppercase.
upvoted 0 times
...
Mila
4 months ago
Yeah, D looks like the correct command.
upvoted 0 times
...
Margart
4 months ago
I think D is the right choice.
upvoted 0 times
...
...
Loreta
4 months ago
Option D looks good to me. It's a simple one-liner that should do the trick.
upvoted 0 times
Shaun
4 months ago
Let's go with option D then, it's a simple and effective solution.
upvoted 0 times
...
Truman
4 months ago
I agree, tr '[a-z]' '[A-Z]' should work perfectly for this task.
upvoted 0 times
...
Reena
4 months ago
Yeah, using tr to convert lowercase to uppercase seems like the way to go.
upvoted 0 times
...
Truman
4 months ago
I think option D is the correct one.
upvoted 0 times
...
...
Essie
4 months ago
I think the answer is D.
upvoted 0 times
...

Save Cancel