CompTIA Linux+ (V8) Certification Exam
Read questions, check verified answers and discuss the reasoning. Use reading options to shape your revision, or switch to the simulator for timed practice.
19 questions in this view
A Linux administrator needs to temporarily open ports for an application that uses TCP ports 3020 through 3022 on a system. Which of the following commands should the administrator issue?
Select an answer above, then submit your vote. Reading or practicing does not cast a vote.
Given the following Python function:
with open("test.txt", "r") as f:
print(f.read())
Which of the following is causing this Python script to display an error?
Select an answer above, then submit your vote. Reading or practicing does not cast a vote.
Which of the following commands are used to unlock an account after several failed login attempts? (Select two).
Select an answer above, then submit your vote. Reading or practicing does not cast a vote.
A systems administrator is creating a backup copy of the /home/ directory. Which of the following commands allows the administrator to archive and compress the directory at the same time?
Select an answer above, then submit your vote. Reading or practicing does not cast a vote.
A Linux administrator wants to make the ENABLE_AUTH variable set to 1 and available to the environment of subsequently executed commands. Which of the following should the administrator use for this task?
Select an answer above, then submit your vote. Reading or practicing does not cast a vote.
A systems administrator is deploying a new secure web server but is having issues starting it. The administrator reviews the following outputs:
# systemctl status -l httpd
httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2024-07-09 12:30:05 EDT; 2min 30s ago
Docs: man:httpd.service(8)
Process: 12233 ExecReload=/usr/sbin/httpd $OPTIONS -k graceful (code=exited, status=0/SUCCESS)
[...]
Jul 09 12:30:05 node.comptia.com systemd[1]: httpd.service: Succeeded.
Jul 09 12:30:05 node.comptia.com systemd[1]: Stopped The Apache HTTP Server.
Jul 09 12:30:05 node.comptia.com systemd[1]: Starting The Apache HTTP Server...
Jul 09 12:30:05 node.comptia.com httpd[12233]: (13)Permission denied: AH00072: make_sock: could not bind to address [::]:1234
# getenforce
Enforcing
# semanage port -l
[...]
http_port_t tcp 80, 81, 443, 488, 8008, 8009, 8443, 9000
pegasus_http_port_t tcp 5988
# getsebool -a
[...]
httpd_can_network_connect --> on
httpd_can_network_connect_cobbler --> off
httpd_can_network_connect_db --> on
Which of the following commands fixes this issue while following security best practices?
Select an answer above, then submit your vote. Reading or practicing does not cast a vote.