Question 161 · 300 in bank
An administrator would like to list all current containers, regardless of their running state. Which of the following commands would allow the administrator to accomplish this task?
Show answer
Answer: A
CompTIA Linux+300 questions across 31 pages are complete and free, with no account or card.
300 questions in this bank
Free access · progress saved on this device
An administrator would like to list all current containers, regardless of their running state. Which of the following commands would allow the administrator to accomplish this task?
Answer: A
Which of the following should be used to verify the integrity of a file?
Answer: A
An administrator runs ping comptia. org. The result of the command is: ping: comptia.org: Name or service not known Which of the following files should the administrator verify?
Answer: C
The ping returning with "name or service not known" is a clear indicator that the workstation isn't reaching a DNS server to resolve the name. /etc/resolv.conf is the configuration file for listing DNS servers the workstation will reach out to for name resolution
Source: Adapted from community discussion — BlackSkullz
A new application container was built with an incorrect version number. Which of the following commands should be used to rename the image to match the correct version 2.1.2?
Answer: A
Which of the following is the best tool for dynamic tuning of kernel parameters?
Answer: A
The tuned application is the best tool for dynamic tuning of kernel parameters, as it monitors the system and optimizes the performance under different workloads. It provides a number of predefined profiles for typical use cases, such as power saving, low latency, high throughput, virtual machine performance, and so on. It also allows users to create, modify, and delete profiles, and to switch between them on the fly. Tuned-adm is a management tool for tuned, but it does not perform tuning by itself.
Source: Adapted from community discussion — ID77
A Linux administrator is troubleshooting SSH connection issues from one of the workstations. When users attempt to log in from the workstation to a server with the IP address 104.21.75.76, they receive the following message:
The administrator reviews the information below:


Which of the following is causing the connectivity issue?
Answer: C
It's a Firewall issue, i'm picking `C`. Please note, it's easy to misread the title of the outputs, read carefully -i made the same mistake from `TheRealManish` contribution also... it reads: Server Output#1 Server Output#2 Server Output#3 Server Output#4 *NOT* Server #1 Output Server #2 Output Server #3 Output Server #4 Output Cheers!
Source: Adapted from community discussion — Nvoid
A network administrator issues the dig www.comptia.org command and receives an NXDOMAIN response. Which of the following files should the administrator check first?
Answer: A
I would tend to check nsswitch.conf to be sure “host files dns”, then look at /etc/hosts to make sure any static entries are correct (or just delete everything except the local hosts info), then resolv.conf to make sure it lists valid dns servers.
Source: Adapted from community discussion — 97155f3
An administrator attempts to connect to a remote server by running the following command:

Which of the following can be said about the remote server?
Answer: A
A Linux administrator would like to run the cleanup script /home/admin/script.sh at 9:00 p.m. on March 31. Which of the following commands should the administrator use to accomplish this task?
Answer: A
I tested all four. A ran reliably (I used a bash script to output some text with the time of exection to a text file). B, C, and D produced no output to the text file. C and D did not work as one-liners (the command would be `at 9pm March 31` and it puts you at the at> prompt. Adding the remainer of the commands did not result in any output to the text file
Source: Adapted from community discussion — jimr999
Which of the following will prevent non-root SSH access to a Linux server?
Answer: D
Keyboard:J Kmove between questionsA–Dselect an answerRshow or hide the answer← →change page
XK0-005 practice, question 161. 300 questions available.
Version 1.0.1. How we source questions
Questions 76, 77, 79, 80 were withdrawn after review. The remaining questions keep their original numbers and links.