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.