CompTIACompTIA
XK0-005 · Question #1256
XK0-005 Question #1256: Real Exam Question with Answer & Explanation
Sign in or unlock XK0-005 to reveal the answer and full explanation for question #1256. The question stem and answer options stay visible for context.
System Management
Question
A Linux user needs to create a file named newfile in the home directory that mirrors the contents of the /etc/resolv.conf file. Which of the following commands would accomplish this task?
Options
- Acat /etc/resolv.conf > /home/user/newfile
- Becho /etc/resolv.conf > /home/user/newfile
- Cgrep /etc/resolv.conf < /home/user/newfile
- Dprintf /etc/resolv.conf > /home/user/newfile
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
#Linux commands#File redirection#cat command#File manipulation