Which of the following commands would accomplish this task?

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?
A. cat /etc/resolv.conf > /home/user/newfile
B. echo /etc/resolv.conf > /home/user/newfile
C. grep /etc/resolv.conf < /home/user/newfile
D. printf /etc/resolv.conf > /home/user/newfile

comptia-exams

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.