exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 156 discussion

Actual exam question from CompTIA's XK0-005
Question #: 156
Topic #: 1
[All XK0-005 Questions]

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
  • B. firewall-cmd --check-config
  • C. firewall-cmd --list-services
  • D. systemctl status firewalld
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
linux_admin
8 months, 3 weeks ago
Selected Answer: C
C. firewall-cmd --list-services Explanation: firewall-cmd is the command-line interface for the firewall management tool firewalld in Linux. --list-services is an option used with the firewall-cmd command to list all the services that are currently allowed through the firewall. So, the command firewall-cmd --list-services will return the list of services that are currently allowed through the firewall.
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago