Bird
0
0

What is the output of the command:

medium📝 Command Output Q13 of 15
Linux CLI - Text Processing
What is the output of the command:
echo "hello world" | tr 'a-z' 'A-Z'?
AHELLO WORLD
Bhello world
CHELLO world
DError: invalid range
Step-by-Step Solution
Solution:
  1. Step 1: Understand the command

    The command converts all lowercase letters (a-z) to uppercase (A-Z) in the input text "hello world".
  2. Step 2: Apply translation

    All letters become uppercase, so "hello world" becomes "HELLO WORLD".
  3. Final Answer:

    HELLO WORLD -> Option A
  4. Quick Check:

    Lowercase to uppercase translation = HELLO WORLD [OK]
Quick Trick: tr 'a-z' 'A-Z' converts lowercase to uppercase [OK]
Common Mistakes:
  • Expecting partial uppercase
  • Confusing input and output
  • Thinking it causes an error

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes