ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 156 - XK0-005 discussion

Report
Export

A Linux administrator has logged in to a server for the first time and needs to know which services are allowed through the firewall. Which of the following options will return the results for which the administrator is looking?

A.
firewall-cmd -get-services
Answers
A.
firewall-cmd -get-services
B.
firewall-cmd -check-config
Answers
B.
firewall-cmd -check-config
C.
firewall-cmd -list-services
Answers
C.
firewall-cmd -list-services
D.
systemctl status firewalld
Answers
D.
systemctl status firewalld
Suggested answer: C

Explanation:

The firewall-cmd --list-services command will return the results for which the administrator is looking. This command will list all services that are allowed through the firewall in the default zone or a specified zone. A service is a predefined set of ports and protocols that can be enabled or disabled by firewalld. The firewall-cmd --get-services command will list all available services that are supported by firewalld, not only those that are allowed through the firewall. The firewall-cmd --check-config command will check if firewalld configuration files are valid, not list services. The systemctl status firewalld command will display information about the firewalld service unit, such as its state, PID, memory usage, and logs, not list services. Reference: CompTIA Linux+ (XK0-005) Certification Study Guide, Chapter 18: Securing Linux Systems, page 543.

asked 02/10/2024
Hairul Isman Abdul Gaffar
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first