System Management
An administrator is working with aliases in an interactive bash shell. Which statements about aliases are correct? (Choose four.)
Choose 4 answers
Show the answer
Correct answersA. Running unalias -a removes all aliases defined in the current shell.B. Running alias ll prints the current definition of the alias ll.C. Running alias with no arguments lists every alias defined in the current shell.D. A value that contains spaces must be quoted, as in alias ll='ls -l'.
alias alone lists all aliases, alias name shows one definition, unalias -a clears them all, and quotes are needed when the value contains spaces. Spaces around the equals sign break the definition, because bash treats each word as a separate argument. Non-interactive scripts do not expand interactive aliases.