XK0-004 · Question #279
XK0-004 Question #279: Real Exam Question with Answer & Explanation
The correct answer is C: hostnamectl set-hostname "Server1" --pretty. command to set hostname: hostnamectl three classes of hostname. 1. “static” host name is the traditional hostname, which can be chosen by the user, and is stored in the /etc/hostname file. 2.“transient” hostname is a dynamic host name maintained by the kernel. It is initialized t
Question
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
Explanation
command to set hostname: hostnamectl three classes of hostname. 1. “static” host name is the traditional hostname, which can be chosen by the user, and is stored in the /etc/hostname file. 2.“transient” hostname is a dynamic host name maintained by the kernel. It is initialized to the static host name by default, whose value defaults to “localhost”. It can be changed by DHCP or mDNS at runtime. 3. "pretty” hostname is a free-form UTF8 host name for presentation to the user.
Community Discussion
No community discussion yet for this question.