Pre-Summer Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: force70

CompTIA Linux+ V8 Exam XK0-006 Question # 25 Topic 3 Discussion

CompTIA Linux+ V8 Exam XK0-006 Question # 25 Topic 3 Discussion

XK0-006 Exam Topic 3 Question 25 Discussion:
Question #: 25
Topic #: 3

A systems administrator is working on configuration changes and needs to replace a hostname in a specific file. Which of the following commands should the administrator use to complete this task?


A.

cut -d oldhostname /etc/configuration.file | vi newhostname


B.

sed -i ' s/oldhostname/newhostname/ ' /etc/configuration.file


C.

cat /etc/configuration.file | grep oldhostname > newhostname


D.

grep oldhostname /etc/configuration.file | awk ' {print $1 newhostname} '


Get Premium XK0-006 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.