Free XK0-005 Exam Braindumps

Pass your CompTIA Linux+ Certification Exam exam with these free Questions and Answers

Page 7 of 36
QUESTION 26

A systems administrator frequently connects to a remote host via SSH and a non-standard port. The systems administrator would like to avoid passing the port parameter on the command line every time. Which of the following files can be used to set a different port value for that host?

  1. A. /etc/ssh/sshd_config
  2. B. /etc/ssh/moduli
  3. C. ~/.ssh/config
  4. D. ~/.ssh/authorized_keys

Correct Answer: C

QUESTION 27

A Linux administrator has installed a web server, a database server, and a web application on a server. The web application should be active in order to render the web pages. After the administrator restarts the server, the website displays the following message in the browser: Error establishing a database connection. The Linux administrator reviews the following relevant output from the systemd init files:
XK0-005 dumps exhibit
The administrator needs to ensure that the database is available before the web application is started. Which of the following should the administrator add to the HTTP server .service file to accomplish this task?

  1. A. TRIGGERS=mariadb.service
  2. B. ONFAILURE=mariadb.service
  3. C. WANTEDBY=mariadb.service
  4. D. REQUIRES=mariadb.service

Correct Answer: D

QUESTION 28

An administrator needs to make some changes in the IaC declaration templates. Which of the following commands would maintain version control?

  1. A. git clone https://github.com/comptia/linux+-.git git push origin
  2. B. git clone https://qithub.com/comptia/linux+-.git git fetch New-Branch
  3. C. git clone https://github.com/comptia/linux+-.git git status
  4. D. git clone https://github.com/comptia/linuxt+-.gitgit checkout -b

Correct Answer: D

QUESTION 29

A Linux administrator is installing a web server and needs to check whether web traffic has already been allowed through the firewall. Which of the following commands should the administrator use to accomplish this task?

  1. A. firewalld query-service-http
  2. B. firewall-cmd --check-service http
  3. C. firewall-cmd --query-service http
  4. D. firewalld --check-service http

Correct Answer: C

QUESTION 30

A Linux engineer needs to download a ZIP file and wants to set the nice of value to -10 for this new process. Which of the following commands will help to accomplish the task?

  1. A. $ nice -v -10 wget https://foo.com/installation.zip
  2. B. $ renice -v -10 wget https://foo.com/installation.2ip
  3. C. $ renice -10 wget https://foo.com/installation.zip
  4. D. $ nice -10 wget https://foo.com/installation.zip

Correct Answer: D

Page 7 of 36

Post your Comments and Discuss CompTIA XK0-005 exam with other Community members: