CompTIACompTIA
XK0-005 · Question #243
XK0-005 Question #243: Real Exam Question with Answer & Explanation
Sign in or unlock XK0-005 to reveal the answer and full explanation for question #243. The question stem and answer options stay visible for context.
System Management
Question
A user wants to alias dir so it always returns the contents of the ls -la command. However, the user has to reset the alias with every login. Which of the following is the BEST action the user can take to ensure the command is always available?
Options
- Aecho "alias dir=ls -la" > /etc/profile
- Becho "alias dir=ls -la" >> /etc/skel
- Cecho "alias dir=ls -la" >> ~/.profile
- Decho "alias dir=ls -la" > ~/.bashrc
Unlock XK0-005 to see the answer
You've previewed enough free XK0-005 questions. Unlock XK0-005 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#Shell Configuration#Linux Aliases#User Environment#File Redirection