Bird
0
0

What will be the output of sudo ufw status verbose after running sudo ufw allow 80/tcp and enabling ufw?

medium📝 Command Output Q4 of 15
Linux CLI - System Administration
What will be the output of sudo ufw status verbose after running sudo ufw allow 80/tcp and enabling ufw?
AStatus: active\nTo Action From\n-- ------ ----\n80/tcp ALLOW IN Anywhere
BStatus: inactive\nNo rules configured
CStatus: active\nNo rules configured
DStatus: active\nTo Action From\n-- ------ ----\n22/tcp ALLOW IN Anywhere
Step-by-Step Solution
Solution:
  1. Step 1: Understand effect of ufw allow 80/tcp

    This command allows incoming TCP traffic on port 80 (HTTP).
  2. Step 2: Check ufw status verbose output

    The status will be active with a rule allowing port 80 TCP from anywhere.
  3. Final Answer:

    Status: active\nTo Action From\n-- ------ ----\n80/tcp ALLOW IN Anywhere -> Option A
  4. Quick Check:

    ufw status verbose shows active rules including port 80 [OK]
Quick Trick: After allowing port 80, ufw status verbose shows it allowed [OK]
Common Mistakes:
  • Expecting status inactive after enabling
  • Confusing port 22 with port 80

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes