LPIC-1 Exam 102 v5 (Linux Administrator) — Question 100

If an alias ls exists, which of the following commands updates the alias to point to the command ls -l instead of the alias's current target?

Answer options

Correct answer: B

Explanation

The correct answer is B because the alias command is specifically designed to create or update command aliases in the shell. Option A uses the set command incorrectly for aliases, while options C and D are not valid methods for updating an alias. Option E is not a standard command in shell environments for aliasing.