Network configuration · Question 8 of 12

Which command permanently sets the hostname to web01 on systemd systems?

1 answer is correct. Easy Created with AI

Show answer

Answer

  • C hostnamectl set-hostname web01

Explanation

hostnamectl writes the name to /etc/hostname and sets it immediately. nmcli general hostname web01 would also work; nmcli device has no such command.

Certifications & exams

Which exam comes next?

You can already practise for 51 exams, and 16 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications