Bird
0
0

What does the tr command do in bash scripting?

easy🧠 Conceptual Q11 of 15
Bash Scripting - Text Processing in Scripts
What does the tr command do in bash scripting?
AIt transforms or deletes characters from input text streams.
BIt compiles bash scripts into executables.
CIt lists files in a directory.
DIt runs commands in the background.
Step-by-Step Solution
Solution:
  1. Step 1: Understand the purpose of tr

    The tr command is used to translate or delete characters from input text streams.
  2. Step 2: Compare with other options

    Options B, C, and D describe unrelated commands or functions in bash.
  3. Final Answer:

    It transforms or deletes characters from input text streams. -> Option A
  4. Quick Check:

    tr = transform/delete characters [OK]
Quick Trick: Remember: tr means translate characters [OK]
Common Mistakes:
MISTAKES
  • Confusing tr with file listing commands like ls
  • Thinking tr compiles scripts
  • Assuming tr runs commands in background

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Bash Scripting Quizzes