0% found this document useful (0 votes)
275 views8 pages

Comptia: Questions & Answers PDF

This document provides sample questions and answers to help study for the CompTIA Linux+ Certification Exam. It includes 10 multiple choice questions about Linux administration topics like remote access, storage troubleshooting, Apache installation, and more. Each question includes an explanation of the correct answer. The document promotes CertsChief as offering accurate and updated exam preparation materials.

Uploaded by

Peter John
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
275 views8 pages

Comptia: Questions & Answers PDF

This document provides sample questions and answers to help study for the CompTIA Linux+ Certification Exam. It includes 10 multiple choice questions about Linux administration topics like remote access, storage troubleshooting, Apache installation, and more. Each question includes an explanation of the correct answer. The document promotes CertsChief as offering accurate and updated exam preparation materials.

Uploaded by

Peter John
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

CertsChief

Guaranteed Success with Accurate & Updated Questions.

Comptia
XK0-004
CompTIA Linux+ Certification Exam

Questions & Answers PDF

For More Information - Visit:


https://www.certschief.com/

ProductFull Version Features:


 90 Days Free Updates
 30 Days Money Back Guarantee
 Instant Download Once Purchased
 24/7 Online Chat Support

Visit us athttps://www.certschief.com/exam/xk0-004/
Question: 1
Which of the following would be the BEST solution for a systems administrator to access the graphical
user environment of a Linux machine remotely?

A. VNC
B. KDE
C. X11
D. RPC

Answer: A
Reference:
https://www.sfu.ca/computing/about/support/tips/remote-to-linux-with-gui.html

Question: 2
A technical support engineer receives a ticket from a user who is trying to create a 1KB file in the /tmp
directory and is getting the following error No space left on device. The support engineer checks the
/tmp directory, and it has 20GB of free space.
Which of the following BEST describes a possible cause for this error?

A. The /tmp directory is not mounted.


B. The filesystem is formatted with a 4MB block size.
C. the filesystem ran out of inodes.
D. The /tmp directory has been set with an immutable attribute.

Answer: C
Reference:
https://www.maketecheasier.com/fix-linux-no-space-left-on-device-error/

Question: 3
Which of the following is the BEST reason for not storing database files in the /var directory?

A. The /var filesystem is not fast enough for database files.


B. The number of files in /var is limited by the available inodes.
C. Files in /var do not have strict file permissions.
D. If log files fill up /var, it might corrupt the database.

Answer: D

Visit us athttps://www.certschief.com/exam/xk0-004/
Question: 4
CORRECT TEXT
A junior system administrator had trouble installing and running an Apache web server on a Linux
server.
You have been tasked with installing the Apache web server on the Linux server and resolving the issue
that prevented the junior administrator from running Apache.
INSTRUCTIONS
Install Apache and start the service. Verify that the Apache service is running with the defaults.
Typing “help” in the terminal will show a list of relevant commands.
If at any time you would like to bring back the initial state of the simulation, please click the Reset All
button.
CentOS Command Prompt

Answer:
See Solution below

Visit us athttps://www.certschief.com/exam/xk0-004/
Question: 5
DRAG DROP
The lead Linux has added a disk, /dev/sdd, to a VM that is running out of disk space. Place the following
steps in the correct order from first (1) to last (4) to add the disk to the existing LVM.

Visit us athttps://www.certschief.com/exam/xk0-004/
Answer:

Reference:
https://www.rootusers.com/how-to-increase-the-size-of-a-linux-lvm-by-expanding-the-virtual-
machinedisk/

Question: 6
An administrator receives a warning about a file system filling up, and then identifies a large file located
at /tmp/largelogfile. The administrator deletes the file, but no space is recovered on the file system.
Which of the following commands would BEST assists the administrator in identifying the problem?

A. lsof | grep largelogfile


B. pkill /tmp/largelogfile
C. pgrep largelogfile
D. ps –ef | grep largelogfile

Answer: A
Reference:
https://access.redhat.com/solutions/2316

Visit us athttps://www.certschief.com/exam/xk0-004/
Question: 7
Which of the following can be used to boot a DVD from a remote device to initialize a Linux system
setup
on bare metal hardware as if it is a local DVD?

A. UEFI
B. PXE
C. NFS
D. GRUB

Answer: A
Reference:
https://access.redhat.com/documentation/enus/
red_hat_enterprise_linux/6/html/installation_guide/ch-boot-x86

Question: 8
After starting a long-running script, a systems administrator needs to verify the frequency of what is
filling up the /var partition and kill it because it is consuming too much space.
Which of the following is the correct sequence given only a terminal is available?

A. 1. CTRL-C2. bg3. watch df /var4. CTRL-C5. fg6. CTRL-Z


B. 1. CTRL-C2. fg3. watch df /var4. CTRL-Z5. bg6. CTRL-Z
C. 1. CTRL-Z2. bg3. watch df /var4. CTRL-C5. fg6. CTRL-C
D. 1. CTRL-Z2. bg3. watch df /var4. CTRL-Z5. fg6. CTRL-C

Answer: D

Question: 9
A Linux administrator must identify a user with high disk usage. The administrator runs the # du –s
/home/* command and gets the following output:

Based on the output, User3 has the largest amount of disk space used. To clean up the file space, the

Visit us athttps://www.certschief.com/exam/xk0-004/
administrator needs to find out more information about the specific files that are using the most disk
space.
Which of the following commands will accomplish this task?

A. df –k /home/User/files.txt
B. du –a /home/User3/*
C. du –sh /home/User/
D. find . –name /home/User3 -print

Answer: C
Reference:
https://unix.stackexchange.com/questions/37221/finding-files-that-use-the-most-disk-space

Question: 10
A Linux server has multiple IPs. A Linux administrator needs to verify if the HTTP server port is bound to
the correct IP.
Which of the following commands would BEST accomplish this task?

A. route
B. host
C. nslookup
D. netstat
E. ip

Answer: D
Reference:
https://www.tecmint.com/find-listening-ports-linux/

Visit us athttps://www.certschief.com/exam/xk0-004/
For More Information - Visit:
http://www.certschief.com/

Discount Coupon Code: Page | 1

CERTSCHIEF10 Visit us athttps://www.certschief.com/exam/xk0-004/


http://www.certschief.com/exam/0B0-104/
Powered by TCPDF (www.tcpdf.org)

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy