A Linux administrator recently changed the IP addresses of all the web servers from 10.10.50.x to 10.10.100.x. The administrator needs to update the serverlist.txt file to reflect the change. The file contains the following: 10:WebSvr01:10.10.50.21:Main 11:WebSvr02:10.10.50.22:Acconting 12:WebSvr03:10.10.50.23:Intranet 20:NFS01:10.10.20.21:FileServer 30:SMTP01:10.10.30.31:Email Which of the following commands will change the IP addresses and update the files in place?
A) sed 's|.50|.100|g' serverlist.txt
B) sed -g 's|.50|.100|a' serverlist.txt
C) sed -i 's|.50|.100|' serverlist.txt
D) sed -i 's|.50|.100|g' serverlist.txt
Correct Answer:
Verified
Q236: A systems administrator manually added a new
Q237: A Linux user uses a VPN to
Q238: A systems administrator notices several intensive tasks
Q239: Which of the following Linux server roles
Q240: An administrator is attempting to block SSH
Q242: Which of the following is used in
Q243: A junior systems administrator needs to schedule
Q244: An administrator is troubleshooting to determine why
Q245: A systems administrator is receiving errors while
Q246: A systems administrator clones copies of a
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents