nerdexam
CompTIACompTIA

XK0-005 · Question #279

XK0-005 Question #279: Real Exam Question with Answer & Explanation

Sign in or unlock XK0-005 to reveal the answer and full explanation for question #279. The question stem and answer options stay visible for context.

System Management

Question

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?

Options

  • Ahost Server1
  • Becho "127.0.0.1 Server1 Server1.localdomain" >> /etc/hosts
  • Chostnamectl set-hostname "Server1" --pretty
  • Dhostnamectl set-hostname Server1 --transient
  • Ehostnamectl set-hostname Server1.localdomain --static

Unlock XK0-005 to see the answer

You've previewed enough free XK0-005 questions. Unlock XK0-005 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#Linux Administration#Hostname Management#System Configuration#hostnamectl
Full XK0-005 PracticeBrowse All XK0-005 Questions