CompTIA Linux+ (XK0-005) Certification Sample Questions

Linux+ Dumps, XK0-005 Dumps, XK0-005 PDF, Linux+ VCE, CompTIA XK0-005 VCE, CompTIA Linux Plus PDFThe purpose of this Sample Question Set is to provide you with information about the CompTIA Linux+ exam. These sample questions will make you very familiar with both the type and the difficulty level of the questions on the XK0-005 certification test. To get familiar with real exam environment, we suggest you try our Sample CompTIA Linux+ Certification Practice Exam. This sample practice exam gives you the feeling of reality and is a clue to the questions asked in the actual CompTIA Linux+ certification exam.

These sample questions are simple and basic questions that represent likeness to the real CompTIA XK0-005 exam questions. To assess your readiness and performance with real time scenario based questions, we suggest you prepare with our Premium CompTIA Linux+ Certification Practice Exam. When you solve real time scenario based questions practically, you come across many difficulties that give you an opportunity to improve.

CompTIA XK0-005 Sample Questions:

01. Based on the given command: find /home/user1 -type f -name "*.txt" -size +100M
Which of the following will the command accomplish?
a) It finds all the files ending with .txt with a size less than 100MB in /home/user1 directory.
b) It finds all the files ending with .txt with a size of 100MB in /home/user1 directory.
c) It finds all the directories with .txt files with a size of 100MB in /home folder.
d) It finds all the files ending with .txt with a size of over 100MB in /home/user1 directory.
 
02. A systems administrator needs to check if the service systemd-resolved)service is running without any errors. Which of the following commands will show this information?
a) systemctl status systemd-resolved)service
b) systemctl enable systemd-resolved)service
c) systemctl mask systemd-resolved)service
d) systemctl show systemd-resolved)service
 
03. A non-privileged user is attempting to use commands that require elevated account permissions, but the commands are not successful. Which of the following most likely needs to be updated?
a) / etc/passwd
b) / etc/shadow
c) /etc/sudoers
d) /etc/bashrc
 
04. Which of the following can be used as a secure way to access a remote terminal?
a) TFTP
b) SSH
c) SCP
d) SFTP
 
05. A Linux administrator is troubleshooting an SSHD issue on a server. Users are receiving error messages stating the connection is refused) Which of the following commands should be used to verify whether the service is listening?
a) nslookup
b) route
c) netstat
d) ifconfig
 
06. Users are unable to create new files on the company's FTP server, and an administrator is troubleshooting the issue. The administrator runs the following commands:
 
# df -h /ftpusers/
Filesystem - /dev/sda4
Size - 150G
Used - 40G
Avail - 109G
Use% - 26%
Mounted on - /ftpusers
 
# df -i /ftpusers/
Filesystem - /dev/sda4
Inodes - 34567
Iused - 34567
Ifree - 0
Iuse% - 100%
Mounted on - /ftpusers
 
Which of the following is the cause of the issue based on the output above?
a) The users do not have the correct permissions to create files on the FTP server.
b) The ftpusers filesystem does not have enough space.
c) The inodes is at full capacity and would affect file creation for users.
d) journalctl --vacuum-time=2
 
07. An application fails to start after a server is restarted) Which of the following commands would allow this service to start automatically?
a) systemctl reload app.service
b) systemctl restart app.service
c) systemctl start app.service
d) systemctl enable app.service
 
08. A user wants to back up some work files from the /opt/work directory to a home directory. Which of the following commands should the user run?
a) mv /opt/work ~
b) cp -R /opt/work ~
c) rm -Rf /opt/work
d) touch ~/work
 
09. A systems administrator is trying to give read/write access to a file, config.conf, to User1. Based on the output shown:
$ getfacl config.conf # file: config.conf # owner: cloud_user # group: cloud_user user::rw- user:User2:r-- group::rw- mask::rw- other::r--
a) setfacl -b u:User1:r
b) setfacl -x u:User1:User2:rw
c) setfacl -m u:User1:rw
d) setfacl -m g:User1:rw
 
10. A systems administrator is running out of space for journald systemd binary logs in the default location and needs to address the space issue. One of the requirements is to retain the logs for at least two weeks. Which of the following commands should the administrator issue?
a) journalctl --vacuum-time=14d
b) journalctl --vacuum-size=20M
c) journalctl --vacuum-size=200M
d) journalctl --vacuum-time=2

Answers:

Question: 01
Answer: d
Question: 02
Answer: a
Question: 03
Answer: c
Question: 04
Answer: b
Question: 05
Answer: c
Question: 06
Answer: c
Question: 07
Answer: d
Question: 08
Answer: b
Question: 09
Answer: c
Question: 10
Answer: a

Note: For any error in CompTIA Linux+ (XK0-005) certification exam sample questions, please update us by writing an email on feedback@edusum.com.

Rating: 4.9 / 5 (93 votes)