Which of the following commands can be used to set the hostname to netlab01 on a systemd system?

Which of the following commands can be used to set the hostname to netlab01 on a systemd system?Category: Introduction to Linux IIAuthor "LinuxQuestions"Which of the following commands can be used to set the hostname to netlab01 on a systemd system?
Linux Questions Staff asked 1 year ago

Which of the following commands can be used to set the hostname to netlab01 on a systemd system?

  • sudo hostnamectl set-hostname netlab01
  • hostnamectl status change hostname netlab01
  • Edit the /etc/systemd/hosts.cfg file
  • hostname netlab01

About the author