Bird
0
0

What will be the output of the command cat /etc/os-release | grep '^ID=' on a Fedora system?

medium📝 Command Output Q13 of 15
Linux CLI - Linux Basics and Terminal
What will be the output of the command cat /etc/os-release | grep '^ID=' on a Fedora system?
AID=fedora
BID=centos
CID=ubuntu
DID=debian
Step-by-Step Solution
Solution:
  1. Step 1: Understand /etc/os-release file

    This file contains identification info about the Linux distribution, including the ID field.
  2. Step 2: Recognize Fedora's ID value

    Fedora's ID in this file is fedora, so the grep command outputs ID=fedora.
  3. Final Answer:

    ID=fedora -> Option A
  4. Quick Check:

    Fedora ID = fedora [OK]
Quick Trick: Fedora's ID in os-release is 'fedora' [OK]
Common Mistakes:
MISTAKES
  • Assuming ID=ubuntu on Fedora
  • Confusing CentOS and Fedora IDs
  • Not using grep correctly

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes