Bird
0
0

Given the alias alias ll='ls -l' and the command ll /tmp, what will be the output?

medium📝 Command Output Q13 of 15
Linux CLI - Environment and Configuration
Given the alias alias ll='ls -l' and the command ll /tmp, what will be the output?
ALists files in /tmp in long format
BShows an error: command not found
CLists files in current directory only
DPrints the text 'll /tmp'
Step-by-Step Solution
Solution:
  1. Step 1: Understand alias expansion

    The alias ll replaces ll with ls -l when typed.
  2. Step 2: Apply alias with argument

    Typing ll /tmp runs ls -l /tmp, listing files in /tmp in long format.
  3. Final Answer:

    Lists files in /tmp in long format -> Option A
  4. Quick Check:

    Alias expands command with arguments = A [OK]
Quick Trick: Alias replaces command name but keeps arguments [OK]
Common Mistakes:
  • Thinking alias ignores arguments
  • Expecting alias to print text
  • Assuming alias causes error

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes