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 ?
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
Correct Answer:
Verified
Q241: A Linux administrator recently changed the IP
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
Q247: Joe, a user, reports there is data
Q248: Users in the sales department are unable
Q249: A Linux administrator needs to disable the
Q250: A Linux administrator recently reprovisioned a new
Q251: A Linux administrator needs to prevent the
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