Câu 31: XK0-005: CompTIA Linux+
A systems administrator is implementing a new service task with systems at startup and needs to execute a script entitled test.sh with the following content: The administrator tries to run the script after making it executable with chmod +x; however, the script will not run. Which of the following should the administr…
Nội dung câu hỏi
A systems administrator is implementing a new service task with systems at startup and needs to execute a script entitled test.sh with the following content: The administrator tries to run the script after making it executable with chmod +x; however, the script will not run. Which of the following should the administrator do to address this issue? (Choose two.)
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. Add #!/bin/bash to the bottom of the script.
- B. Create a unit file for the new service in /etc/systemd/system/ with the name helpme.service in the location. — đáp án hiện tại
- C. Add #!//bin/bash to the top of the script. — đáp án hiện tại
- D. Restart the computer to enable the new service.
- E. Create a unit file for the new service in /etc/init.d with the name helpme.service in the location.
- F. Shut down the computer to enable the new service.
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.