Bird
0
0

What is the primary function of the tr command in Linux?

easy📝 Conceptual Q1 of 15
Linux CLI - Text Processing
What is the primary function of the tr command in Linux?
ATranslate or replace characters from input
BDisplay the contents of a file
CChange file permissions
DList directory contents
Step-by-Step Solution
Solution:
  1. Step 1: Understand the purpose of tr

    The tr command is used to translate or replace characters from standard input.
  2. Step 2: Compare with other commands

    Other options like displaying files or changing permissions are done by different commands like cat or chmod.
  3. Final Answer:

    Translate or replace characters from input -> Option A
  4. Quick Check:

    tr = Translate characters [OK]
Quick Trick: Think of 'tr' as character translator [OK]
Common Mistakes:
  • Confusing with file display commands
  • Thinking it changes file permissions
  • Assuming it lists directories

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes