XK0-005 · Question #730
XK0-005 Question #730: Real Exam Question with Answer & Explanation
The correct answer is C: iptables -F. {"question_number": 7, "question": "Remove all local firewall rules on a Linux system", "correct_answer": "C", "explanation": "iptables -F (flush) deletes all rules from all chains in the current table (default: filter), effectively clearing all local firewall rules at once. Opti
Question
A Linux administrator needs to remove all local firewall rules on a Linux system. Which of the following commands should the administrator run?
Options
- Aiptables -D
- Biptables -L
- Ciptables -F
- Diptables -A
Explanation
{"question_number": 7, "question": "Remove all local firewall rules on a Linux system", "correct_answer": "C", "explanation": "iptables -F (flush) deletes all rules from all chains in the current table (default: filter), effectively clearing all local firewall rules at once. Option A (-D) deletes a single, specific rule and requires additional arguments specifying the chain and rule criteria - it cannot remove all rules alone. Option B (-L) lists the current rules and makes no changes. Option D (-A) appends a new rule to a chain - the opposite of removing rules. For a full reset, -F is the standard command, though administrators may also want to use -X to delete custom chains and -Z to zero counters.", "generated_by": "claude-sonnet", "llm_judge_score": 4}
Topics
Community Discussion
No community discussion yet for this question.