Free XK0-005 Exam Braindumps

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

Page 8 of 36
QUESTION 31

A Linux administrator found many containers in an exited state. Which of the following commands will allow the administrator to clean up the containers in an exited state?

  1. A. docker rm --all
  2. B. docker rm $(docker ps -aq)
  3. C. docker images prune *
  4. D. docker rm --state exited

Correct Answer: D

QUESTION 32

A cloud engineer needs to change the secure remote login port from 22 to 49000. Which of the following files should the engineer modify to change the port number to the desired value?

  1. A. /etc/host.conf
  2. B. /etc/hostname
  3. C. /etc/services
  4. D. /etc/ssh/sshd_config

Correct Answer: D

QUESTION 33

A user is asking the systems administrator for assistance with writing a script to verify whether a file exists. Given the following:
XK0-005 dumps exhibit
Which of the following commands should replace the string?

  1. A. if [ -f "$filename" ]; then
  2. B. if [ -d "$filename" ]; then
  3. C. if [ -f "$filename" ] then
  4. D. if [ -f "$filename" ]; while

Correct Answer: A

QUESTION 34

A Linux administrator copied a Git repository locally, created a feature branch, and committed some changes to the feature branch. Which of the following Git actions should the Linux administrator use to publish the changes to the main branch of the remote repository?

  1. A. rebase
  2. B. tag
  3. C. commit
  4. D. push

Correct Answer: C

QUESTION 35

A systems administrator needs to verify whether the built container has the app.go file in its root directory. Which of the following can the administrator use to verify the root directory has this file?

  1. A. docker image inspect
  2. B. docker container inspect
  3. C. docker exec ls
  4. D. docker ps

Correct Answer: B

Page 8 of 36

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