CompTIA Linux+ (XK0-005) — Question 266
A Linux engineer is removing a previously created firewall rule. Which of the following commands will help the administrator accomplish this task?
Answer options
- A. ufw delete 80/tcp
- B. ufw delete deny 80/tcp
- C. ufw delete 80/tcp deny
- D. ufw 80/tcp delete
Correct answer: B
Explanation
Option B is correct because it specifies both the action to delete and the rule to be denied for TCP traffic on port 80. The other options do not correctly follow the syntax required by the 'ufw' command to remove a specific rule.