Courseiva
Shells, Scripting and Data ManagementmediumMultiple SelectObjective-mapped

LPIC-1 Shells, Scripting and Data Management Practice Question

Which THREE of the following are types of expansion performed by the bash shell during command parsing?

⚠ Common exam trap

Many candidates confuse alias expansion (which occurs during tokenization) with the formal expansion phases listed in the bash manual, or mistake variable assignment as an expansion type when it is actually a separate parsing step.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Parameter expansion

Parameter expansion (e.g., ${var}, $var) is a fundamental expansion step performed by the bash shell during command parsing, where variables are replaced with their values before execution. This occurs after brace expansion and tilde expansion but before word splitting and pathname expansion, as defined in the bash manual's expansion order.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Parameter expansion

    Why this is correct

    e.g., ${var} expands variable value.

  • Tilde expansion

    Why this is correct

    e.g., ~ expands to home directory.

  • Brace expansion

    Why this is correct

    e.g., {a,b} expands to a b.

  • Variable assignment

    Why it's wrong here

    Assignment is not an expansion.

  • Alias expansion

    Why it's wrong here

    Aliases are replaced before parsing, not considered an expansion step.

About these practice questions

One of 527 original LPIC-1 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This LPIC-1 practice question is part of Courseiva's free LPI certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the LPIC-1 exam.