Q. Which of the following commands will change the hostname of a Linux machine?

  • (A) change-hostname
  • (B) hostnamectl set-hostname
  • (C) sethost
  • (D) hostctl
πŸ’¬ Discuss
βœ… Correct Answer: (B) hostnamectl set-hostname
Explanation: 'hostnamectl set-hostname' is used to change the system's hostname.
Explanation by: Mr. Dubey
'hostnamectl set-hostname' is used to change the system's hostname.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
57
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
92%
Success Rate