Intermediate Linux & Shell Scripting
Q59 / 100

What is the purpose of "alias" in bash, e.g. "alias ll='ls -la'"?

Correct! Well done.

Incorrect.

The correct answer is A) It creates a shortcut name that the shell expands to a longer command, useful for frequently used commands or commonly-used options — aliases are typically defined in shell config files like ~/.bashrc to persist across sessions

A

Correct Answer

It creates a shortcut name that the shell expands to a longer command, useful for frequently used commands or commonly-used options — aliases are typically defined in shell config files like ~/.bashrc to persist across sessions

Explanation

Aliases provide convenient shortcuts (e.g. "ll" for "ls -la") within the shell session that defines them; to persist across sessions, they're typically added to shell startup files like ~/.bashrc or ~/.zshrc.

Progress
59/100