Bird
0
0

What does the command alias ll='ls -l' do in a Linux shell?

easy📝 Conceptual Q11 of 15
Linux CLI - Environment and Configuration
What does the command alias ll='ls -l' do in a Linux shell?
ARuns the <code>ls -l</code> command immediately
BDeletes the <code>ll</code> command permanently
CLists all aliases currently set
DCreates a shortcut named <code>ll</code> that runs <code>ls -l</code>
Step-by-Step Solution
Solution:
  1. Step 1: Understand the alias syntax

    The command alias name='command' creates a shortcut named name for the given command.
  2. Step 2: Apply to given example

    Here, ll is set as a shortcut for ls -l, so typing ll runs ls -l.
  3. Final Answer:

    Creates a shortcut named ll that runs ls -l -> Option D
  4. Quick Check:

    alias creates shortcut = A [OK]
Quick Trick: Alias syntax is alias name='command' to create shortcuts [OK]
Common Mistakes:
  • Thinking alias runs the command immediately
  • Confusing alias with deleting commands
  • Assuming alias lists all commands

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes