Câu 136: XK0-004: CompTIA Linux+
A systems administrator clones copies of a Linux VM every time a new Linux server is needed. The administrator notices the command prompt always states localhost.localdomain. Which of the following should the administrator run to have the command prompt consistently labeled as Server1 rather than localhost.localdomain?
Nội dung câu hỏi
A systems administrator clones copies of a Linux VM every time a new Linux server is needed. The administrator notices the command prompt always states localhost.localdomain. Which of the following should the administrator run to have the command prompt consistently labeled as Server1 rather than localhost.localdomain?
Các lựa chọn
Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.
- A. host Server1
- B. echo "127.0.0.1 Server1 Server1.localdomain" >> /etc/hosts
- C. hostnamectl set-hostname "Server1" --pretty — đáp án hiện tại
- D. hostnamectl set-hostname Server1 --transient
- E. hostnamectl set-hostname Server1.localdomain --static
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.