102-500 Exam QuestionsBrowse all questions from this exam

102-500 Exam - Question 73


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?

Show Answer
Correct Answer: B

To update an alias in Unix-like operating systems, the `alias` command is used. The correct syntax to update an alias is `alias name='value'`, where `name` is the alias name and `value` is the command you want the alias to execute. Therefore, the correct command to update the alias `ls` to point to `ls -l` is `alias ls='ls -l'`.

Discussion

2 comments
Sign in to comment
drliu1202Option: B
Aug 11, 2022

"alias alias_name=command(s)" https://learning.lpi.org/en/learning-materials/102-500/105/105.1/105.1_03/#:~:text=alias%20alias_name%3Dcommand(s)

kleverOption: B
Jan 11, 2023

alias ls='ls -l' does the job