CompTIA Linux+ (XK0-004) — Question 103

A Linux administrator needs to remotely update the contents of the www.comptia.org/contacts URL.
Which of the following commands would allow the administrator to download the current contents of the URL before updating?

Answer options

Correct answer: A

Explanation

The correct command is 'curl www.comptia.org/contacts', which is specifically designed for transferring data using various protocols, including HTTP. The 'dig' command is used for DNS lookup and won't retrieve web content. 'apt-get' and 'yum' are package management commands that deal with software installation and updates, not downloading web content.