A systems administrator clones copies of a Linux VM every time a new Linux server is needed. The administrator notices the command prompt always states localhost.localdomain. Which of the following should the administrator run to have the command prompt consistently labeled as Server1 rather than localhost.localdomain? A. host Server1 B. echo "127.0.0.1 Server1 Server1.localdomain" >> /etc/hosts C. hostnamectl set-hostname "Server1" --pretty D. hostnamectl set-hostname Server1 --transient E. hostnamectl set-hostname Server1.localdomain --static Suggested Answer: C Community Answer: D Reference: https://www.tutorialspoint.com/how-to-setup-hostname-in-centos-7-x-or-rhel-7-x-linux-versions This question is in XK0-004 CompTIA Linux+ Exam For getting CompTIA Linux+ Certificate Disclaimers: The website is not related to, affiliated with, endorsed or authorized by CompTIA. Trademarks, certification & product names are used for reference only and belong to CompTIA. The website does not contain actual questions and answers from CompTIA's Certification Exams.
Please login or Register to submit your answer