Bird
0
0

What will the command echo $SHELL display in the terminal?

medium📝 Command Output Q5 of 15
Linux CLI - Linux Basics and Terminal
What will the command echo $SHELL display in the terminal?
AThe path of the default shell program
BThe current working directory
CThe list of files in the home directory
DThe current date and time
Step-by-Step Solution
Solution:
  1. Step 1: Understand environment variables

    $SHELL stores the path of the default shell program.
  2. Step 2: Understand echo

    echo prints the value of the variable, so it shows the shell path.
  3. Final Answer:

    The path of the default shell program -> Option A
  4. Quick Check:

    echo $SHELL shows shell path [OK]
Quick Trick: Use echo $SHELL to see your shell path [OK]
Common Mistakes:
  • Thinking it shows current directory
  • Confusing with file list commands
  • Expecting date/time output

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes