Month End Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: simple70

Exam XK0-005 All Questions
Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

CompTIA Linux+ XK0-005 Question # 53 Topic 6 Discussion

XK0-005 Exam Topic 6 Question 53 Discussion:
Question #: 53
Topic #: 6

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?


A.

tr '(A-Z}' '{a-z}' < testfile > uppercase


B.

echo testfile | tr "[Z-A]" "[z-a]" < testfile > uppercase


C.

cat testfile | tr '{z-a)' '{Z-A}' < testfile > uppercase


D.

tr '[a-z]' '[A-Z]' < testfile > uppercase


Get Premium XK0-005 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.