CompTIA Linux+
Practice questions for the CompTIA Linux+ certification exam.
4.6★★★★★(218 ratings)
13,548 studentsIntermediate- •Familiarity with basic IT concepts
- •Access to relevant platform tools for hands-on practice
- •Interest in pursuing XK0-004 certification
- •Engineers and architects pursuing professional certification
- •Developers looking to validate their skills
- •IT professionals transitioning to specialized roles
- •Students preparing for certification exams
This course covers everything you need to pass the CompTIA Linux+ (XK0-004) exam. Each part of this course contains real exam questions taken from the actual exam pool, with hint answers to guide your study. Practice with these questions to build confidence and master the topics needed for certification success.
What you'll learn
- Master the core concepts for XK0-004 certification
- Practice with real exam-style questions
- Understand platform services and architectures covered in XK0-004
- Build confidence through timed practice exams
- Learn from detailed hint answers and explanations
- Pass the official XK0-004 certification exam on your first try
XK0-004
Lectures3
Questions156
Duration30 week
Students13,548
$20.00
Full Free Question Bank (156 Questions)
CompTIA Linux+ (XK0-004) Practice Questions & Verified Answers
Click any option to test your knowledge, or reveal the verified answer and detailed explanation below each question.
Jump to Section:
Question #1Part 1
AVNC
BKDE
CX11
DRPC
✓ Verified Answer: D
Question #2Part 1
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?
AThe /tmp directory is not mounted.
BThe filesystem is formatted with a 4MB block size.
Cthe filesystem ran out of inodes.
DThe /tmp directory has been set with an immutable attribute.
✓ Verified Answer: D
Question #3Part 1
Which of the following is the BEST reason for not storing database files in the /var directory?
AThe /var filesystem is not fast enough for database files.
BThe number of files in /var is limited by the available inodes.
CFiles in /var do not have strict file permissions.
DIf log files fill up /var, it might corrupt the database.
✓ Verified Answer: D
Question #4Part 1
An administrator receives a warning about a filesystem filling up, and then identifies a large file located at /tmp/largelogfile. The administrator deletes the file, but no space is recovered on the filesystem. Which of the following commands would BEST assists the administrator in identifying the problem?
Alsof | grep largelogfile
Bpkill /tmp/largelogfile
Cpgrep largelogfile
Dps ג€"ef | grep largelogfile
✓ Verified Answer: B
Question #5Part 1
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?
AUEFI
BPXE
CNFS
DGRUB
✓ Verified Answer: B
Question #6Part 1
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?
A1. CTRL-C 2. bg 3. watch df /var 4. CTRL-C 5. fg 6. CTRL-Z
B1. CTRL-C 2. fg 3. watch df /var 4. CTRL-Z 5. bg 6. CTRL-Z
C1. CTRL-Z 2. bg 3. watch df /var 4. CTRL-C 5. fg 6. CTRL-C
D1. CTRL-Z 2. bg 3. watch df /var 4. CTRL-Z 5. fg 6. CTRL-C
✓ Verified Answer: D
Question #7Part 1
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 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?
Adf ג€"k /home/User3/files.txt
Bdu ג€"a /home/User3/*
Cdu ג€"sh /home/User/
Dfind . ג€"name /home/User3 -print
✓ Verified Answer: B
Question #8Part 1
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?
Aroute
Bhost
Cnslookup
Dnetstat
Eip
✓ Verified Answer: D
Question #9Part 1
A systems administrator needs to append output of ls `"lha /opt command to the contents of a test.txt file. Which of the following commands will accomplish this?
Als ג€"lha /opt > test.txt
Bls ג€"lha /opt < test.txt
Cls ג€"lha /opt >> test.txt
Dls ג€"lha /opt
✓ Verified Answer: A
Question #10Part 1
A Linux administrator needs to remotely update the contents of the www.comptia.org/contacts URL. Which of the following commands would allow the administrator to download the current contents of the URL before updating?
Acurl www.comptia.org/contacts
Bdig www.comptia.org/contacts
Capt-get www.comptia.org/contacts
Dyum list www.comptia.org/contacts
✓ Verified Answer: A
Question #11Part 1
Which of the following BEST describes containers running on a Linux system?
AContainers only need the namespaces functionality to run on a Linux system available since kernel 2.6.
BContainers need a hypervisor to run on a Linux system. Cgroups namespaces are functionalities used for the kernel but not for running containers.
CContainers only need the cgroups functionality for running on a Linux system. Namespaces is not a Linux kernel functionality needed for creating and managing containers.
DContainers use the cgroups and namespaces functionalities to isolate processes and assign hardware resources to each of those isolated processes.
✓ Verified Answer: D
Question #12Part 1
A networked has been crashing intermittently. A Linux administrator would like to write a shell script that will attempt to ping the server and email an alert if the server fails to respond. The script will later be scheduled via cron job. Which of the following scripts would BEST accomplish this task?
AB.
CC.
DNo answers
✓ Verified Answer: B
Question #13Part 1
A Linux administrator is testing connectivity to a remote host on a shared terminal. The administrator wants to allow other users to access the terminal while the command is executing. Which of the following commands should the administrator use?
Abg ping remotehost
Bfg ping remotehost
Cping remotehost < results
Dping remotehost &
✓ Verified Answer: D
Question #14Part 1
A Linux administrator needs to switch from text mode to GUI. Which of the following runlevels will start the GUI by default?
ARunlevel 3
BRunlevel 4
CRunlevel 5
DRunlevel 6
✓ Verified Answer: D
Question #15Part 1Select 2
A junior systems administrator is configuring localization option environment variables. The administrator is given a checklist of tasks with the following requirements: ✑ View current settings of the LC_ALL environment variable only. ✑ Modify the LANG environment variable to US English Unicode. Given this scenario, which of the following should be performed to meet these requirements? (Choose two.)
Aecho $LC_ALL
Blocale
Ccat $LC_ALL
Dexport LANG = en_US.UTF-8
Eexport $LANG = en_US.UTF
✓ Verified Answer: AD
Question #16Part 1
An administrator needs to change the IP address on a server remotely. After updating the configuration files, a network restart is needed. However, the administrator fears that when the network connection drops, the network restart script will be killed before the new IP address has been set. Which of the following commands would prevent the script from being killed?
Anohup service network restart
Bservice network restart &
Cecho ג€service network restartג€ | at now
Dbg service network restart
✓ Verified Answer: B
Question #17Part 1
A Linux administrator is testing a new web application on a local laptop and consistently shows the following 403 errors in the laptop's logs: The web server starts properly, but an error is generated in the audit log. Which of the following settings should be enabled to prevent this audit message?
Ahttpd_can_network_connect = 1
Bhttpd_enable_scripting = 1
Chttpd_enable_homedirs = 1
Dhttpd_enable_cgi = 1
✓ Verified Answer: C
Question #18Part 1
An administrator is analyzing a Linux server which was recently hacked. Which of the following will the administrator use to find all unsuccessful login attempts?
Ansswitch
Bfaillock
Cpam_tally2
Dpasswd
✓ Verified Answer: B
Question #19Part 1
A junior administrator needs to unload an older video kernel module. Which of the following commands would BEST accomplish this task?
Amodprobe
Binsmod
Crmmod
Dchmod
Edepmod
✓ Verified Answer: C
Question #20Part 1
An administrator is attempting to block SSH connections to 192.168.10.24 using the Linux firewall. After implementing a rule, a connection refused error is displayed when attempting to SSH to 192.168.10.24. Which of the following rules was MOST likely implemented?
Aiptables ג€"A ג€"p tcp ג€"d 192.168.10.24 ג€"-dport 22 ג€"j REJECT
Biptables ג€"A ג€"p tcp ג€"d 192.168.10.24 ג€"-dport 22 ג€"j DROP
Ciptables ג€"A ג€"p tcp ג€"d 192.168.10.24 ג€"-dport 22 ג€"j FORWARD
Diptables ג€"A ג€"p tcp ג€"d 192.168.10.24 ג€"-dport 22 ג€"j REFUSE
✓ Verified Answer: D
Question #21Part 1
A junior Linux administrator is setting up system-wide configuration settings. The goal is to ensure the PATH environment variable includes the following locations for all users who log into a Linux system: The administrator issues the following commands at the terminal: Respectively, the output of these commands is as follows: Given this output, which of the following would be the BEST action for the administrator to perform to address this issue?
AUpdate the /etc/profile.d file using a text editor, navigate to the PATH element, add the missing locations, and run the bash_completion.sh script to update the changes.
BUpdate the /etc/profile file using a text editor, navigate to the PATH element, add the missing locations and run the . /etc/profile command to update the changes.
CUpdate the /etc/profile.d file using a text editor, navigate to the PATH element, add the missing locations, and reboot to update the changes.
DUpdate the /etc/profile file using a text editor navigate to the PATH element, add the missing locations, and restart the bash process to update the changes.
✓ Verified Answer: D
Question #22Part 1
A Linux systems administrator needs to provision multiple web servers into separate regional datacenters. The systems architect has instructed the administrator to define the server infrastructure using a specific tool that consumes a text-based file. Which of the following is the BEST reason to do this?
ATo document the infrastructure so it can be included in the system security plan
BTo ensure the administrator follows the planning phase of the systems development life cycle
CTo define the infrastructure so it can be provisioned consistently with minimal manual tasks
DTo validate user requirements have been met within each regional datacenter for compliance
✓ Verified Answer: C
Question #23Part 1
A Linux administrator needs to set permissions on an application with the following parameters: ✑ The owner of the application should be able to read, write, and execute the application. ✑ Members of the group should be able to read and execute the application. ✑ Everyone else should not have access to the application. Which of the following commands would BEST accomplish these tasks?
Achmod 710
Bchmod 730
Cchmod 750
Dchmod 760
✓ Verified Answer: C
Question #24Part 1
A junior Linux administrator is trying to verify connectivity to the remote host host1 and display round-trip statistics for ten ICMP requests. Which of the following commands should the administrator execute?
Aping ג€"c 10 host1
Btraceroute ג€"c 10 host1
Cnetstat host1
Dpathping ג€"c 10 host1
✓ Verified Answer: A
Question #25Part 1
A junior Linux administrator is updating local name resolution to support IPv6. The administrator issues the command cat /etc/hosts and receives the following output: 127.0.0.1 localhost Which of the following actions should the administrator perform to accomplish this task?
AModify the /etc/hosts file, and add the ipv6 localhost entry to the file.
BModify the /etc/hosts file, and add the ::1 localhost entry to the file.
CModify the /etc/hosts file, and add the ipv4 localhost entry to the file.
DModify the /etc/hosts file, and add the 0.0.0.0 localhost entry to the file.
✓ Verified Answer: C
Question #26Part 1
A Linux systems administrator needs to copy the contents of a directory named working on the local working system to a folder /var/www/html on a server named corporate-web.
Which of the following commands will allow the administrator to copy all the contents to the web server?
Ascp ג€"r working/* webuser@corporate-web:/var/www/html
Btar working/* webuser@corporate-web:/var/www/html
Ccp ג€"r working/* webuser@corporate-web:/var/www/html
Dmv working webuser@corporate-web:/var/www/html
✓ Verified Answer: A
Question #27Part 1
A systems administrator has received reports of intermittent network connectivity to a particular website. Which of the following is the BEST command to use to characterize the location and type of failure over the course of several minutes?
Amtr www.comptia.org
Btracert www.comptia.org
Cping www.comptia.org
Dnetstat www.comptia.org
✓ Verified Answer: B
Question #28Part 1
A Linux administrator has configured a Linux system to be used as a router. The administrator confirms that two network adapters are properly installed and functioning correctly. In addition, the output of the iptables `"L command appears to contain a complete firewall configuration. Which of the following commands does the administrator need to issue for the router to be fully functional?
Aecho ג€1ג€ > /proc/sys/net/ipv4/ip_forward
Becho ג€0ג€ > /proc/sys/net/ipv4/tcp_abort_on_overflow
Cecho ג€0ג€ > /proc/sys/net/ipv4/max_connections
Decho ג€1ג€ > /proc/sys/net/ipv4/ip_default_ttl
✓ Verified Answer: D
Question #29Part 1
A systems administration team has decided to treat their systems as immutable instances. They keep the desired state of each of their systems in version control and apply automation whenever they provision a new instance. If there is an issue with one of their servers, instead of troubleshooting the issue, they terminate the instance and rebuild it using automation. Which of the following is this an example of?
AInventory
BOrchestration
CInfrastructure as code
DAgentless deployment
✓ Verified Answer: B
Question #30Part 1
A systems administrator wants to deploy several applications to the same server quickly. Each application should be abstracted from the host with its own dependencies and libraries and utilize a minimal footprint. Which of the following would be BEST in this scenario?
AVirtual machines
BType 2 hypervisor
CChroot jails
DContainers
✓ Verified Answer: D
Question #31Part 1
An operator finds a user is having issues with opening certain files. Which of the following commands would allow the security administrator to list and check the SELinux context?
Als ג€"D
Bls ג€"a
Cls ג€"Z
Dls -l
✓ Verified Answer: C
Question #32Part 1
A new corporate policy states that Bluetooth should be disabled on all company laptops. Which of the following commands would disable the use of Bluetooth?
Aecho ג€blacklist bluetoothג€ > /etc/modprobe.d/blacklist-bluetooth
Becho ג€kill bluetoothג€ > /etc/modprobe.d/kill-bluetooth
Cecho ג€modprobe bluetoothג€ > /etc/modprobe.d/modporbe-bluetooth
Decho ג€rmmod bluetoothג€ > /etc/modprobe.d/rmmod-bluetooth
✓ Verified Answer: C
Question #33Part 1
A junior Linux administrator is installing a new application with CPU architecture requirements that have the following specifications: ✑ x64 bit ✑ 3.0GHz speed ✑ Minimum quad core The administrator wants to leverage existing equipment but is unsure whether the requirements of these systems are adequate. The administrator issues the following command cat /proc/cpuinfo. The output of the command is as follows: Which of the following is the recommended course of action the administrator should take based on this output?
AInstall the application, as the system meets the application requirements
BProcure new equipment that matches the recommended specifications
CRecompile the Linux kernel to support the installation.
DReconfigure lib modules to support the new application.
✓ Verified Answer: B
Question #34Part 1
A Linux systems administrator wants the ability to access systems remotely over SSH using RSA authentication. To which of the following files should the RSA token be added to allow this access?
Aauthorized_keys
B~/.ssh/ssh_config
Cid_rsa.pub
Dknown_hosts
✓ Verified Answer: C
Question #35Part 1
A Linux server needs to be accessed, but the root password is not available. Which of the following would BEST allow an administrator to regain access and set a new known password at the same time?
ABoot into single-user mode and reset the password via the passwd command.
BBoot into single-user mode and reset the password by editing the /etc/passwd file.
CBoot into single-user mode and reset the password by editing the /etc/shadow file.
DBoot into single-user mode and reset the password via the chage command.
✓ Verified Answer: A
Question #36Part 1
A Linux administrator wants to fetch a Git repository from a remote Git server. Which of the following is the BEST command to perform this task?
Agit checkout
Bgit clone
Cgit merge
Dgit config
✓ Verified Answer: B
Question #37Part 1
An administrator needs to create a shared directory in which all users are able to read, write, and execute its content but none of the regular users are able to delete any content. Which of the following permissions should be applied to this shared directory?
Arwxrwxrwt
Brwxrwxrws
Crwxrwxrwx
Drwxrwxrw*
✓ Verified Answer: A
Question #38Part 1
A systems administrator has finished building a new feature for the monitoring software in a separate Git branch. Which of the following is the BEST method for adding the new feature to the software's master branch?
AMerge the changes from the feature branch to the master branch.
BSave the changes to the master branch automatically with each Git commit.
CClone the feature branch into the master branch.
DPull the changes from the feature branch into the master branch.
✓ Verified Answer: D
Question #39Part 1
Which of the following will provide a list of all flash, external, internal, and SSD drives?
Alspci
Blsmod
Clsblk
Dlsusb
✓ Verified Answer: D
Question #40Part 1
Which of the following configuration management tools is considered agentless?
APuppet
BSalt
CAnsible
DChef
✓ Verified Answer: C
Question #41Part 1
An administrator reviews the following configuration file provided by a DevOps engineer: Which of the following would the application parsing this file MOST likely have to support?
AYAML
BAJAX
CJSON
DSOAP
✓ Verified Answer: A
Question #42Part 1
Which of the following is a difference between YAML and JSON?
AUsers can comment in YAML but not in JSON
BJSON only uses curly brackets, while YAML only uses square brackets
CJSON is used in web development, while YAML is used solely in back-end systems.
DYAML has been deprecated for JSON.
✓ Verified Answer: A
Question #43Part 1
A junior administrator of a physical server receives log messages indicating the out-of-memory killer has been active. All memory slots are in use on the motherboard, but additional disk space is available. Space has been allocated for a swap file. Which of the following should the administrator use to reduce the output of memory messages?
Afree : swapoff / swapfile ; swapon -a
Bmkswap /swapfile; swapon ג€"a
Cfallocate ג€"l 2G /swapfile && swapon ג€"a
Decho ג€1ג€ > /proc/meninfo ; swapon / swapfile
✓ Verified Answer: C
Question #44Part 1
A junior Linux administrator is optimizing a system in which an application needs to take priority 0 when running the process. The administrator runs the ps command and receives the following output: Given this scenario, which of the following steps will address this issue?
AIssue the command renice ג€"n 0 ג€"p 8481
BIssue the command renice ג€"p 8481
CIssue the command renice ג€"p 0 -n 8481
DIssue the command renice ג€"n 8481
✓ Verified Answer: D
Question #45Part 1
An administrator needs to mount the shared NFS file system testhost:/testvolume to mount point /mnt/testvol and make the mount persistent after reboot. Which of the following BEST demonstrates the commands necessary to accomplish this task?
AB.
CD.
✓ Verified Answer: B
Question #46Part 1
A systems administrator has deployed a Linux server based on an Anaconda process with all packages and custom configurations necessary to install a web server role. Which of the following could be used to install more Linux servers with the same characteristics?
A/etc/sysconfig/anaconda.cfg
B/root/anaconda.auto
C/root/anaconda-ks.cfg
D/etc/sysconfig/installation.cfg
✓ Verified Answer: A
Question #47Part 1
A Linux administrator is using a Linux system as a router. During the tests, the administrator discovers that IP packets are not being sent between the configured interfaces. Which of the following commands enables this feature for IPv4 networks?
Acat /proc/sys/net/ipv4/ip_route > 1
Becho ג€1ג€ > /proc/sys/net/ipv4/ip_forward
Cecho ג€1ג€ > /proc/sys/net/ipv4/ip_route
Decho ג€1ג€ > /proc/sys/net/ipv4/ip_net
✓ Verified Answer: C
Question #48Part 1
A systems administrator wants to know the current status of a series of dd jobs that were started in the background three hours ago. Which of the following commands will achieve this task?
Asudo killall ג€"HUP dd
Bsudo killall dd
Csudo killall ג€"TERM dd
Dsudo killall -USR1 dd
✓ Verified Answer: C
Question #49Part 1
A Linux administrator needs the tech account to have the option to run elevated commands as root.
Which of the following commands would BEST meet this goal?
A$ su ג€" tech ג€"c ג€/bin/bashג€
B# usermod ג€"aG wheel tech
C# sudo ג€"i tech
D# groupadd ג€"u tech ג€"g root
✓ Verified Answer: B
Question #50Part 1
Which of the following is the purpose of the vmlinux file on a Linux system?
ATo prevent a Linux kernel panic
BTo start a Linux virtual machine
CTo provide the executable kernel for the system
DTo enable resource access to the network
✓ Verified Answer: C
Question #51Part 1
Ann, a junior systems administrator, is required to add a line to the /etc/yum.conf file. However, she receives the following error message when she tries to add the line: Ann performs some diagnostics to attempt to find the root cause: Which of the following commands should Ann execute to write content to /etc/yum?
Achmod 755 /etc/yum.conf
Bsetfacl ג€"m m:rw /etc/yum.conf
Cchattr ג€"i /etc/yum.conf
Dsetenforce 0
✓ Verified Answer: C
Question #52Part 1
A Linux administrator needs to take stock of USB devices attached to the system. Which of the following commands would be BEST to complete this task?
Alspci
Blsusb
Ccat /proc/USB
Dmodprobe -ג€"usb
✓ Verified Answer: D
Question #53Part 1
Which of the following server roles would assign a host IP address?
ADHCP
BNTP
CDNS
DSSH
✓ Verified Answer: A
Question #54Part 1
Which of the following commands would show the default printer on a Linux system?
Alpr
Blpq
Clpstat
Dlspci
✓ Verified Answer: B
Question #55Part 1
A systems administrator has set up third-party log aggregation agents across several cloud instances. The systems administrator wants to create a dashboard of failed SSH attempts and the usernames used. Which of the following files should be watched by the agents?
A/var/log/audit/audit.log
B/var/log/kern.log
C/var/log/monitor
D/etc/rsyslog.conf
✓ Verified Answer: A
Question #56Part 1
A systems administrator must clean up all application files in the directory /var/log/app. However, the company's security policy requires the files to be kept on the backup server for one year. The Linux server has only the tar and bzip2 packages installed. Which of the following commands will package and compress the files?
Atar ג€"zcvf applicationfiles.tar.bz2 /var/log/app/*
Btar ג€"jcvf applicationfiles.tar.bz2 /var/log/app/*
Ctar ג€"cvf applicationfiles.tar.bz2 /var/log/app/*
Dtar ג€"xvf applicationfiles.tar.bz2 /var/log/app/*
✓ Verified Answer: D
Question #57Part 1
In order to comply with new security policies, an administrator needs to prevent the SSH server from using insecure algorithms. Which of the following files should be edited to accomplish this?
A/etc/ssh/sshd_config
B/etc/ssh/ssh_config
C~/.ssh/ssh_config
D/etc/ssh/known_hosts
✓ Verified Answer: A
Question #58Part 1
Which of the following configuration files should be modified to disable Ctrl+Alt+Del in Linux?
A/etc/inittab
B~/.bash_profile
C/etc/securetty
D/etc/security/limits.conf
✓ Verified Answer: A
Question #59Part 1
Joe, a user, is unable to log in to the server and contracts the systems administrator to look into the issue. The administrator examines the /etc/passwd file and discovers the following entry: joe:x:505:505::/home/joe:/bin/false Which of the following commands should the administrator execute to resolve the problem?
Ausermod ג€"s /bin/bash joe
Bpasswd ג€"u joe
Cuseradd ג€"s /bin/bash joe
Dchage ג€"E -l joe
✓ Verified Answer: D
Question #60Part 1
A server is almost out of free memory and is becoming unresponsive. Which of the following sets of commands will BEST mitigate the issue?
Afree, fack, partprobe
Blsof, lvcreate, mdadm
Cdf, du, rmmod
Dfdisk, mkswap, swapon -a
✓ Verified Answer: A
Question #61Part 2
A Linux administrator is using a public cloud provider to host servers for a company's website. Using the provider's tools, the administrator wrote a JSON file to define how to deploy the servers. Which of the following techniques did the administrator use?
AInfrastructure as code
BBuild automation
CPlatform as a service
DAutomated configuration
✓ Verified Answer: B
Question #62Part 2
A Linux system is running normally when the systems administrator receives an alert that one application spawned many processes. The application is consuming a lot of memory, and it will soon cause the machine to become unresponsive. Which of the following commands will stop each application process?
Akill
pidof applicationBkillall application
Ckill -9
ps ג€"aux | grep applicationDpkill -9 application
✓ Verified Answer: D
Question #63Part 2
A systems administrator configured a new kernel module, but it stopped working after reboot. Which of the following will allow the systems administrator to check for module problems during server startup?
Alsmod
Bmodprobe
Cmodinfo
Ddmesg
✓ Verified Answer: B
Question #64Part 2
A junior Linux administrator is installing patches using YUM. The administrator issues the following command: yum list installed The output of the command is as follows: Given this scenario and the output, which of the following should the administrator do to address this issue?
Arenice ג€"n 9 ג€"p 5180
Bkillall yum
Cps ג€"ef | grep yum
Dtop | grep yum
✓ Verified Answer: C
Question #65Part 2
A systems administrator needs to retrieve specific fields from a CSV file. Which of the following tools would accomplish this task?
Aawk
Bsort
Cprint
Decho
✓ Verified Answer: C
Question #66Part 2
Two specific users need access to a directory owned by root where backups are located. Which of the following commands would BEST ensure the specified users can access the backup files?
Aumask
Bchcon
Cchmod
Dsetfacl
✓ Verified Answer: C
Question #67Part 2
Which of the following is the purpose of the monitoring server role?
ATo aggregate web traffic to watch which websites employees are visiting
BTo collect status and performance information about the servers in an environment
CTo provide user authentication services to a network
DTo provide real-time analysis of potential threats to the organization
✓ Verified Answer: D
Question #68Part 2
A junior administrator is migrating a virtual machine from a Type 1 hypervisor to a Type 2 hypervisor. To ensure portability, which of the following formats should the administrator export from the Type 1 hypervisor to ensure compatibility?
AOWASP
BVDI
CVMDK
DOVA
✓ Verified Answer: D
Question #69Part 2Select 2
A junior systems administrator is upgrading a package that was installed on a Red Hat-based system. The administrator is tasked with the following: ✑ Update and install the new package. ✑ Verify the new package version is installed. Which of the following should be done to BEST accomplish these task? (Choose two.)
Ayum install
Byum upgrade
Crpm ג€"e
Drpm ג€"qa
Eapt-get
✓ Verified Answer: AB
Question #70Part 2
Which of the following is the template for the grub.cfg file?
A/etc/default/grub
B/etc/grub2.cfg
C/etc/sysctl.conf
D/boot/efi
✓ Verified Answer: B
Question #71Part 2
A Linux administrator implemented a new HTTP server using the default configuration. None of the users on the network can access the server. If there is no problem on the network or with the users' workstations, which of the following steps will BEST analyze and resolve the issue?
ARun netstat to ensure the port is correctly bound, and configure the firewall to allow access on ports 80 and 443
BRun route to ensure the port is correctly bound, and configure the firewall to allow access on ports 80 and 443
CRun netcat to ensure the port is correctly bound, and configure a static route to the web to allow access on ports 80 and 443
DRun route to ensure the port is correctly bound, and configure SELinux to allow access on ports 80 and 443
✓ Verified Answer: D
Question #72Part 2
A Linux storage administrator wants to create a logical volume group. Which of the following commands is required to start the process?
Apvcreate
Bvgcreate
Clvcreate
Dmkfs.xfs
✓ Verified Answer: D
Question #73Part 2
A Linux administrator built a GitLab server. Later that day, a software engineer tried to access the server to upload the repository during the final step of installation. The software engineer could not access the website. Which of the following firewall rules would allow access to this site?
Aiptables ג€"A INPUT ג€"p tcp ג€"m multiport --dports 80,443 ג€"m conntrack ג€"cstate NEW, ESTABLISHED ג€"j ACCEPT
Biptables ג€"A INPUT ג€"p tcp ג€"m multiport --dports 80,443 ג€"m conntrack ג€"cstate ESTABLISHED ג€"j ACCEPT
Ciptables ג€"A INPUT ג€"p tcp ג€"m multiport --dports 80,443 ג€"m conntrack ג€"cstate RELATED, ESTABLISHED ג€"j ACCEPT
Diptables ג€"A INPUT ג€"p tcp ג€"m multiport --dports 80,443 ג€"m conntrack ג€"cstate NEW, ESTABLISHED ג€"j REJECT
✓ Verified Answer: D
Question #74Part 2
While creating a file on a volume, the Linux administrator receives the following message: No space left on device. Running the df `"m command, the administrator notes there is still 50% of usage left. Which of the following is the NEXT step the administrator should take to analyze the issue without losing data?
ARun the df ג€"i command and notice the inode exhaustion
BRun the df ג€"h command and notice the space exhaustion
CRun the df ג€"B command and notice the block size
DRun the df ג€"k command and notice the storage exhaustion
✓ Verified Answer: A
Question #75Part 2
A user attempts to use the mount -a command but gets the following error: mount: mount point /mnt/test does not exist Which of the following commands best describes the action the Linux administrator should take NEXT?
Amount ג€"a /mnt/test
Bmkdir ג€"p /mnt/test
Cmdadm ג€"p /mnt/test
Dmkfs /mnt/test
Etouch /mnt/test
✓ Verified Answer: B
Question #76Part 2
Which of the following is modified to reconfigure the boot environment?
Agrub-mkconfig
Bgrub.cfg
Cupdate-grub
Dgrub2-mkconfig
✓ Verified Answer: B
Question #77Part 2
A company wants to ensure that all newly created files can be modified only by their owners and that all new directory content can be changed only by the creator of the directory. Which of the following commands will help achieve this task?
Aumask 0022
Bumask 0012
Cchmod ג€"R 0644 /
Dchmod ג€"R 0755 /
✓ Verified Answer: A
Question #78Part 2
A Linux administrator needs to back up the folder /usr/domain, and the output must be a gzip compressed tar. Which of the following commands should be used?
Atar ג€"cv domain.tar.gz /usr/domain
Btar ג€"cvf /usr/domain domain.tar.gz
Ctar ג€"czvf domain.tar.gz /usr/domain
Dtar ג€"cxzv /usr/domain domain.tar.gz
✓ Verified Answer: D
Question #79Part 2
A Linux administrator needs every new file created on a directory to maintain the group permissions of the same directory. Which of the following commands would satisfy this requirement?
Achmod o+s
Bchmod u+s
Cchmod +s
Dchmod g+s
✓ Verified Answer: D
Question #80Part 2
Which of the following statements BEST represents what the term agentless means regarding orchestration?
AInstallation of a tool is not required on the remote system to perform orchestration tasks
BIt facilitates version control when using infrastructure as code during orchestration
CIt automatically removes malware from the remote system during orchestration
DA tool can only be accessed remotely to perform orchestration tasks
✓ Verified Answer: A
Question #81Part 2
Given that a company's policy states that users cannot install third-party tools on Window servers, which of the following protocols will allow a Linux GUI to connect to a Windows server?
AVNC
BNX
CRDP
DX11
✓ Verified Answer: C
Question #82Part 2
Ann, a junior Linux administrator, needs to copy software from her local machine to assist in developing a software application on a remote machine with the IP address 192.168.3.22. The file needs to be placed on the /tmp directory. After downloading the RPM to the local machine, which of the following commands would be BEST to use to copy the software?
Ascp ~/software.rpm USER@192.168.3.22:/tmp
Bscp ~/software.rpm USER@192.168.3.22: /tmp
Cwget USER@192.168.3.22:/tmp -f ~/software.rpm
Dscp USER@192.168.3.22 ~/software.rpm :/tmp
✓ Verified Answer: A
Question #83Part 2
An administrator is tasked with increasing the size of the volume /dev/vg/lv to 20GB. Which of the following BEST illustrates the steps the administrator should take?
Avgextend ג€"L20G /dev/vg/lv; resizelv /dev/vg/lv
Bparted ג€"L20G /dev/vg/lv; remount /dev/vg/lv
Cmkfs ג€"L20G /dev/vg/lv; tune2fs /dev/vg/lv
Dlvextend ג€"L20G /dev/vg/lv; resize2fs /dev/vg/lv
✓ Verified Answer: D
Question #84Part 2
A systems administrator observes high latency values when reaching a remote web server. Which of the following commands will help determine and isolate issues on the network side?
Amtr
Bdig
Cnetstat
Droute
✓ Verified Answer: A
Question #85Part 2
A Linux administrator wants to obtain a list of files and subdirectories in the /etc directory that contain the word services. Once the files and subdirectories are discovered, they should be listed alphabetically in the /var/tmp/foundservices file. Which of the following shell scripts will accomplish this task?
A#/bin/bash find /etc ג€"name services | sort > /var/tmp/foundservices
B#/bin/bash locate /etc ג€"sort ג€"name services > /var/tmp/foundservices
C#/bin/bash find ג€"name services ג€"sort </var/tmp/foundservices
D#/bin/bash find /etc ג€"name services ג€"sort > /var/tmp/foundservices
✓ Verified Answer: A
Question #86Part 2
A systems administrator is enabling quotas on the /home directory of a Linux server. The administrator makes the appropriate edits to the /etc/fstab file and attempts to issue the commands to enable quotas on the desired directory. However, the administrator receives an error message stating the filesystem does not support quotas. Which of the following commands should the administrator perform to proceed?
Amount ג€"o remount /home
Bquotacheck -cg
Cedquota /home
Dquotaon /home
✓ Verified Answer: A
Question #87Part 2
A systems administrator needs to install a new piece of hardware that requires a new driver. The driver should be manually installed. Which of the following describes the order of commands required to obtain module information, install the module, and check the log for any errors during module installation?
Alsmod, modprobe, modinfo
Bmodinfo, insmod, modprobe
Cmodinfo, insmod, dmesg
Dlsmod, insmod, dmesg
✓ Verified Answer: C
Question #88Part 2
A new HTTPS web service is being deployed on a server. Which of the following commands should the Linux administrator use to ensure traffic is able to flow through the system firewall to the new service?
Aiptables ג€"I OUTPUT ג€"p tcp --sport 443 ג€"j ACCEPT
Biptables ג€"A INPUT ג€"p tcp --dport 443 ג€"j ACCEPT
Ciptables ג€"I INPUT --dport 443 ג€"j ACCEPT
Diptables ג€"A OUTPUT ג€"p tcp --dport 443 ג€"j ACCEPT
✓ Verified Answer: B
Question #89Part 2
An administrator has modified the configuration file for a service. The service is still running but is not using the new configured values. Which of the following will BEST remediate this issue?
Akill -HUP
Binit 0
Cservice start
Drenice -10
✓ Verified Answer: B
Question #90Part 2
An administrator needs to see a list of the system user's encrypted passwords. Which of the following Linux files does the administrator need to read?
A/etc/shadow
B/etc/skel
C/etc/passwd
D/etc/pw
✓ Verified Answer: A
Question #91Part 2
A Linux administrator is setting up a testing environment and needs to connect to a separate testing server using the production server name. The administrator needs to override the hostname that the DNS is returning in order to use the test environment. Which of the following commands should be run on each of the testing systems to BEST meet this goal?
A# hostnamectl set-hostname ג€192.168.1.100 production.company.comג€
B# grep ג€"i IP ג€${ip addr show} production.company.comג€ > /etc/resolv.conf
C# ip addr add 192.168.1.100/24 dev eth0 && rndc reload production.company.com
D# echo ג€192.168.1.100 production.company.comג€ >> /etc/hosts
✓ Verified Answer: D
Question #92Part 2
Which of the following are Linux desktop managers? (Choose two.)
AKDE
BGNOME
CGUI
DVNC
EX11
✓ Verified Answer: A
Question #93Part 2
A systems administrator is configuring options on a newly installed Linux VM that will be deployed to the Pacific time zone. Which of the following sets of commands should the administrator execute to accurately configure the correct time settings?
Acd /etc ln ג€"s /usr/share/zoneinfo/US/Pacific localtime
Bcd /usr/local ln ג€"s /usr/share/zoneinfo/US/Pacific zoneinfo
Ccd /etc/local ln ג€"s /usr/share/zoneinfo/US/Pacific localtime
Dcd /usr/share/local ln ג€"s /usr/share/zoneinfo/US/Pacific localectl
✓ Verified Answer: A
Question #94Part 2
A user has connected a Bluetooth mouse to a computer, but it is not working properly. Which of the following commands should the systems administrator use to fix the issue?
Alsmod ג€"i bluetooth
Binsmod bluetooth
Cmodprobe ג€"r bluetooth
Ddepmod ג€"i bluetooth
✓ Verified Answer: B
Question #95Part 2
An administrator notices that a long-running script, /home/user/script.sh, is taking up a large number of system resources. The administrator does not know the script's function. Which of the following commands should the administrator use to minimize the script's impact on system resources?
Arenice
Bkill
Cbg
Dnohup
✓ Verified Answer: A
Question #96Part 2
An administrator needs to deploy 100 identical CentOS workstations via PXE boot. Which of the following should the administrator use to minimize the amount of interaction with the consoles needed?
AKickstart script
BGhost image on a distribution server
CHard disk duplicator
DHard disk duplicator
EUbiquity script
✓ Verified Answer: A
Question #97Part 2
A user, jsmith, needs access to database files located on a server. Which of the following will add jsmith to the dba group and preserve existing group memberships?
Ausermod ג€"a ג€"G dba jsmith
Busermod ג€"g dba jsmith
Cuseradd ג€"g dba jsmith
Dgroupmod dba ג€"u jsmith
✓ Verified Answer: A
Question #98Part 2
A Linux administrator installed a new network adapter and temporarily disabled the network service from starting on boot. The partial output of chkconfig is as follows: Which of the following commands BEST describes how the administrator should re-enable the network service?
Achkconfig --level 0 network on
Bchkconfig --level 0-6 network on
Cchkconfig --level 6 network on
Dchkconfig --level 12 network on
Echkconfig --level 345 network on
✓ Verified Answer: D
Question #99Part 2
An engineer is working on a production application deployment that requires changing a web application property file called server.property that is managed by the Git version control system. A cloned copy of the remote repository in which the server.property file exists is on the local desktop computer. The engineer makes appropriate changes to the files, saves it as server.property, and executes git commit "m changed the property file` server.property. Which of the following commands did the engineer fail to perform?
Agit init server.property
Bgit merge server.property
Cgit add server.property
Dgit push server.property
✓ Verified Answer: D
Question #100Part 2
A Linux administrator retrieved a repository of files from a Git server using git clone. The administrator wants to see if a configuration file was added to the repository. Which of the following Git arguments should be used to see the recent modifications?
Afetch
Blog
Cinit
Dpull
✓ Verified Answer: B
Question #101Part 2
A systems administrator is unable to reach other devices on the network and the Internet. The server is configured with the IP address 192.169.1.50/24 on eth0. The server's router is 192.168.1.1. The administrator reviews the output of route `"n: Which of the following commands should the administrator run to correct the issue?
Aroute del default gw 192.168.2.1 eth0; route add default gw 192.168.1.1 eth0
Broute add ג€"net 192.168.10.0 netmask 255.255.255.0 gw 192.168.2.1 eth0
Croute add 192.168.1.1 default 192.168.1.50 eth0
Droute host gw 192.168.1.1 eth0
✓ Verified Answer: A
Question #102Part 2
A junior Linux administrator needs to access production servers using a secure SSH protocol. Which of the following files should contain the public key to gain remote access to the server?
A~/ssh/authorized-keys
B/etc/authorized_keys
C/etc/sshd/ssh.conf
D~/.ssh/authorized_keys
✓ Verified Answer: D
Question #103Part 2
An administrator needs to see the type of CPU that a server is running. Which of the following files contains this information?
A/proc/cpuinfo
B/etc/devices/info.conf
C/dev/proc/cpu
D/sys/dev/cpuinfo
✓ Verified Answer: A
Question #104Part 2
A junior systems administrator is creating a cron job. The cron job requirements are as follows: ✑ Run the hello.sh script every hour (24 times in one day). ✑ Run it on Monday only. Given this scenario, which of the following crontab options should be configured to meet these requirements?
A0 *** 1 hello.sh
B0 24 ** Monday hello.sh
C24 *** Monday hello.sh
D1 *** 0 hello.sh
✓ Verified Answer: A
Question #105Part 2
A Linux systems administrator is setting up SSH access with PKI for several using their newly created RSA keys. Which of the following MOST securely achieves this task?
AUse curl to copy each user's public key file to the respective system
BUse cp to copy each user's public key file to the respective system
CUse ssh-copy-id to copy each user's public key file to the respective system
DUse ssh-copy-id to copy each user's private key file to the respective system
✓ Verified Answer: C
Question #106Part 2
The development team has automated their software build process so each time a change is submitted to the source code repository, a new software build is compiled. They are requesting that the Linux operations team look into automating the deployment of the software build into the test environment. Which of the following is the benefit to the development team for implementing deployment automation?
ATo ensure the build commits are also deployed to the test environment
BTo enable notifications when builds are deployed to the test environment
CTo ensure software builds in test are not accidentally deployed to production
DTo streamline the deployment process for deploying builds into test environments
✓ Verified Answer: D
Question #107Part 2
A Linux administrator needs to schedule a cron job to run at 1:15 p.m. every Friday to report the amount of free disk space on the system and to send the output to a file named freespace. Which of the following would meet this requirement?
A13 15 * * 5 df > /freespace
B15 13 * * 5 df > /freespace
C15 1 * * 6 df > /freespace
D15 13 6 * * df > /freespace
✓ Verified Answer: B
Question #108Part 2Select 2
A technician wants to secure a sensitive workstation by ensuring network traffic is kept within the local subnet. To accomplish this task, the technician executes the following command: echo 0 > /proc/sys/net/ipv4/ip_default_ttl Which of the following commands can the technician use to confirm the expected results? (Choose two.)
Atcpdump
Btraceroute
Croute
Diperf
Eip
✓ Verified Answer: AB
Question #109Part 2
A junior Linux administrator needs to ensure a service will start on system boot. Which of the following commands should be used to accomplish this task?
Achkconfig on
Bsystemctl bootup
Cservice enable
Dcrontab install
✓ Verified Answer: A
Question #110Part 2
A systems administrator uses a remote execution engine to iterate through each IP address in a network and run a script on remote hosts. The script captures the remote system's hostname, IP address, OS distribution, and system uptime. The output of the script gets saved to the administrator's local workstation for future processing. Which of the following is this an example of?
APerformance monitoring
BInventory
CAgentless
DInfrastructure as code
EBuild automation
✓ Verified Answer: C
Question #111Part 2
A Linux administrator has installed a web application firewall in front of a web server running on HTTP port 8080 and successfully started the HTTP server. However, after opening the application URL in an Internet browser, the administrator discovered that the application does not work. The administrator performed the following diagnostic steps: Output of sysctl -a command: Output of iptables -L command: Output of netstat `"nltop | grep "8080": Which of the following is the NEXT step the administrator should perform to permanently fix the issue at the kernel level?
Asysctl -w net.ipv4.ip_forward=1 then run sysctl -w /etc/sysctl.conf to enable the change
BEdit /etc/sysctl.conf file and add net.ipv4.ip_forward = 1 then run sysctl -p /etc/sysctl.conf to enable the change
CAdd iptables rule iptables -A INPUT -m state --state NEW -p tcp --dport 8080 -j then restart httpd daemon
DAdd iptables rule iptables -A FORWARD-m state --state NEW -p tcp --dport 8080 ג€"j ACCEPT then restart httpd daemon
✓ Verified Answer: A
Question #112Part 2
A member of the production group issues the following command: echo "Monday through Friday" > /production_docs/days The command fails to execute, so the user obtains the following output: drwxr--r-- root production 0 Jun 16 2018 production -rw-r--r-- production production 4096 Jun 14 2018 days Which of the following commands should the user execute to BEST fix the issue?
Achmod g+w production to change the permissions on the days file
Bchgrp root production_docs/days to change the group ownership of the production_docs/days file
Cchmod g+S production to set the GUID on the production_docs directory
Dchown production to change the ownership of the production_docs directory
✓ Verified Answer: A
Question #113Part 2
A user wants to list the lines of a log, adding a correlative number at the beginning of each line separated by a set of dashes from the actual message. Which of the following scripts will complete this task?
AB.
CD.
✓ Verified Answer: A
Question #114Part 2
An analyst is trying to determine which public IP addresses are managed by Company A, but the script is not working correctly. Which of the following explains what is wrong with the script?
A$(cat ip-list.txt) should be changed to
cat ip-list.txt in the for statement.BThe for should be changed to while in the loop.
CThe > should be changed to 2> in the do statement.
DThe -ne flag should be changed to -eq in the if statement.
✓ Verified Answer: D
Question #115Part 2
A Linux systems administrator installed a new web server, which failed while attempting to start. The administrator suspects that SELinux is causing an issue and wants to temporarily put the system into permissive mode. Which of the following would allow the administrator to accomplish this?
Aecho SELINUX=PERMISSIVE >> /etc/sysconfig/selinux
Bsetenforce 0
Csestatus 0
Dchcon httpd_sys_content_t /var/
✓ Verified Answer: B
Question #116Part 2
A configuration management tool running every minute is enforcing the service HTTPd to be started. To perform maintenance, which of the following series of commands can be used to prevent the service from being started?
Asystemctl stop httpd && systemctl mask httpd
Bsystemctl disable httpd && systemctl mask httpd
Csystemctl stop httpd && systemctl hide httpd
Dsystemctl disable httpd && systemctl hide httpd
✓ Verified Answer: A
Question #117Part 2
An administrator has written the following Bash script: All necessary files exist in the correct locations. However, when the administrator executes /home/user/test.sh the following error is received: No such file or directory - Which of the following is the MOST likely cause of the error?
AThe shebang points to the wrong path.
BThe script is not executable.
CThe formatting of the file is incorrect.
DNslookup is not installed.
✓ Verified Answer: D
Question #118Part 2
A four-drive Linux NAS has been improperly configured. Each drive has a capacity of 6TB, for a total storage capacity of 24TB. To reconfigure this unit to be not pluggable for drive replacement and provide total storage of 11TB to 12TB, which of the following would be the correct RAID configuration?
ARAID 01
BRAID 03
CRAID 10
DRAID 50
✓ Verified Answer: D
Question #119Part 2
A systems administrator suspects a process with a PID of 2864 is consuming resources at an alarming rate. The administrator uses the command renice -n - 5 -p2864, but it does not solve the issue. Which of the following commands should the administrator execute to correct the issue?
Anice -n 5 -p 2864
Bnice -n -5 -p 2864
Crenice -n 10 -p 2864
Drenice -n -10 -p 2864
✓ Verified Answer: C
Question #120Part 2Select 2
A systems administrator wants to download a package from a remote server. Which of the following are the BEST commands to use for this task? (Choose two.)
Acurl
Bwget
Cmake
Dtar
Ezip
✓ Verified Answer: AB
Question #121Part 3
An administrator is logged into a server remotely and wants to determine if the system is a VM. Which of the following commands would assist with this?
Admesg
Bps
Ctop
Dvmstat
✓ Verified Answer: A
Question #122Part 3
Ann, a Linux administrator, wants to edit a configuration management file. When she opens the file to edit, her text editor reports that the file has been opened in read-only mode. She then tries to edit the file as root by elevating via sudo and is still unable to save any changes. The error message in her text editor says that the read-only option is set on the file. Ann checks the permissions on the file and sees the following: -rw-rw-r-- 1 root wheel 30 Jun 13 15:38 infrastructure.yml Which of the following commands is the BEST option to allow her to successfully modify the file?
Achmod 600 infrastructure.yml
Bchown root: infrastructure.yml
Cchattr -i infrastructure.yml
Dchmod o+w infrastructure.yml
✓ Verified Answer: C
Question #123Part 3
Joe, a member of the accounting group on a Linux system, is unable to write a file called taxes in the accounting shared directory. The ownership and permissions on the directory and file are as follows: accounting drwxrw-r-- user = ann, group = accounting taxes -rw-r--r-- , user = ann, group = accounting
Which of the following commands would allow Joe to write to the file? (Choose two.)
Achmod g+x accounting
Bchmod 777 taxes
Cchgrp taxes accounting
Dchgrp accounting taxes
Echmod 774 accounting
✓ Verified Answer: C
Question #124Part 3
An administrator needs to generate a list of services that are listening on TCP and/or UDP ports. Which of the following tools should the administrator use?
Aethtool
Broute
Cnetstat
Dportmap
✓ Verified Answer: C
Question #125Part 3
Ann, a user, has created a new directory and noticed that permissions on the new directory are as follows: drwx------. 1 ann ann 0 Jun 11 08:20 work Which of the following should the administrator do to restore default permissions for newly created directories?
AChange umask value in /etc/profile.
BRun chmod command to update permissions.
CModify directory ownership to ann:ann with chown.
DExecute chattr command to restore default access.
✓ Verified Answer: A
Question #126Part 3
A Linux engineer is troubleshooting a newly added SCSI device for a Linux server that needed more disk space without rebooting. The engineer discovers that the new device is not visible by the Linux kernel in fdisk -l output. Which of the following commands should be used to rescan the entire SCSI bus?
Aecho "- - -" > /sys/class/scsi_host/host0/scan
Becho ' ' > /sys/class/scsi_host/host0/scan
Cecho "- - -" > /sys/scsi/scsi_host/host0/scan
Decho "scan" > /sys/class/scsi_host/host0/scan
✓ Verified Answer: A
Question #127Part 3
A systems administrator is troubleshooting an intermittent network connection at the IP address 192.168.1.23. The administrator wishes to monitor the connection at five-minute intervals for one hour. Which of the following commands will accomplish this task?
Aping -i 5 192.168.1.23
Bping -c 12 192.168.1.23
Cping -c 12 -i 300 192.168.1.23
Dping -c 60 -i 100 192.168.1.23
✓ Verified Answer: C
Question #128Part 3
A systems administrator wants to mount an ISO to access its content. Using /mnt as a mount point, which of the following is the correct syntax?
Amount -o iso9660 /dev/sr0 /mnt
Bmount -o loop -t iso /mnt
Cmount -o loop /tmp/image.iso /mnt
Dmount -o loop /dev/kvm /mnt
✓ Verified Answer: C
Question #129Part 3
An administrator is uncomfortable allowing users to log in as root. Which of the following ensures that root logins are disallowed?
Ausermod -L root
Busermod -G root
Cusermod -B root
Dusermod -U root
✓ Verified Answer: A
Question #130Part 3
A systems administrator installs a simple package, but the Linux system returns the following error: rpmdb open fails. To verify if there is a problem in the RPM database, the systems administrator runs the following command: Which of the following commands should the systems administrator run NEXT to resolve this issue?
Acd/var/lib/rpm; rpm --rebuilddb ; rm -f _db*; yum clean all
Bcd/var/lib/rpm; rpm -qd; rpm --rebuilddb; yum clean all
Ccd/var/lib/rpm; rpm -qa; rm -f _db*; yum clean all
Dcd/var/lib/rpm; rm -f _db*; rpm --rebuilddb; yum clean all
✓ Verified Answer: D
Question #131Part 3
Joe, a user, reports that he is no longer able to write files to his home directory. Upon inspection, the Linux administrator discovers that attempting to create a new file gives the following error: No space left on device. However, the disk and partition are not full. Which of the following commands would be BEST for the administrator to use to continue troubleshooting this problem?
Arm -Rf ~/.*
Bfsck -y /dev/sda1
Cdf -i
Dfdisk /dev/sda
✓ Verified Answer: C
Question #132Part 3
A Linux administrator is adding a static IP address to a network interface on a Linux system. The administrator modifies the ifcfg- eth0 configuration file with the following settings: After the administrator restarts the Linux server, the system is not connected to the network. Which of the following configuration settings needs to be changed?
ASet BOOTPROTO to BOOTP and USERCTL to yes.
BSet BOOTPROTO to NONE and ONBOOT to yes.
CSet USERCTL to yes and ONBOOT to no.
DSet NETMASK to 255.255.0.0 and ONBOOT to yes.
✓ Verified Answer: B
Question #133Part 3
A company wants to provide internal identity verification services for networked devices. Which of the following servers should be installed?
ASSH
BVPN
CCA
DDHCP
EDNS
✓ Verified Answer: C
Question #134Part 3
An administrator notices a directory on a web server named /var/www/html/old_reports that should no longer be accessible on the web. Which of the following commands will accomplish this task?
Achmod 000 /var/www/html/old_reports
Bchgrp root /var/www/html/old_reports
Cchown apache /var/www/html/old_reports
Dsetenforce apache /var/www/html/old_reports
✓ Verified Answer: A
Question #135Part 3
A Linux administrator wants to configure log messages of critical or higher severity levels from the cron utility to be logged to the console. Which of the following will accomplish this objective?
AEdit the /etc/logrotate.d/cron file to include the line cron.emerg.* /dev/console
BEdit the /etc/rsyslog.conf file to include the line cron.emerg.* /dev/console
CEdit the /etc/logrotate.conf file to include the line cron.emerg.* /dev/console
DEdit the /etc/rsyslog.d/conf file to include the line cron.emerg.* /dev/console
✓ Verified Answer: B
Question #136Part 3
A file server is sharing a directory called /share between team members inside a company. The fileshare needs to be moved from serverA to /newshare located on serverB with all permissions and attributes preserved. Which of the following commands would BEST achieve this task?
Arsync -aHAX /share/* serverB:/newshare
Bdd if=/share/* of=serverB:/newshare
Ctar -cvf /share/* serverB:/newshare
Dmirrorlv /share/* serverB:/newshare
✓ Verified Answer: C
Question #137Part 3
An administrator needs to look at a log for an application on a systemd-based system. There is no log for this application in /var/log. Which of the following is another way to view the application log on this system?
Atail -f /var/log/secure
Bjournalctl ג€"u application
Csystemctl application.service
Dwatch /var/lib/application/
✓ Verified Answer: B
Question #138Part 3
Which of the following is true about Type 2 hypervisors?
AType 2 hypervisors run on top of another general purpose OS.
BType 2 hypervisors are often called bare-metal or native hypervisors.
CType 2 hypervisors offer a performance increase to the guests in comparison to a Type 1 hypervisor.
DOnly Type 2 hypervisors allow direct access to CPU virtualization features.
✓ Verified Answer: A
Question #139Part 3
A security administrator wants to display a warning banner before a user logs in. Which of the following files must be edited to make this happen?
A/etc/services
B/etc/issue
C/etc/hosts
D/etc/motd
✓ Verified Answer: B
Question #140Part 3
Using which of the following control mode commands is the correct way to substitute all occurrences of /dev/sdc with /dev/sdd while editing a file in vi?
A:s//dev/sdc//dev/sdd
B:s/\/dev\/sdc/\/dev\/sdd/g
C:s/\/dev\/sdc/\/dev\/sdd
D:%s/\/dev\/sdc/\/dev\/sdd
✓ Verified Answer: D
Question #141Part 3
A user needs to modify the IP address of a laptop. Which of the following files can be used to configure the network interface named eth0?
A/etc/sysconfig/network/interfaces.cnf
B/system/config/interfaces
C/etc/sysconfig/network-scripts/ifcfg-eth0
D/system/networking/ifconfig
E/etc/interfaces/eth0.conf
✓ Verified Answer: B
Question #142Part 3
A user wants to use terminal services from a Windows workstation to manage a Linux server. Which of the following should be installed on the Linux server to enable this functionality?
AVNC
Brdesktop
CSPICE
DXRDP
✓ Verified Answer: A
Question #143Part 3
On a UEFI-based system, which of the following invokes GRUB2 from the EFI command prompt?
Aboot//EFI/grub2.efi
BEFI/grub2.efi
C/boot/EFI/grub2.efi
D/grub2.efi
✓ Verified Answer: D
Question #144Part 3
A systems administrator notices a large number of autoloaded device modules are no longer needed and decides to do a cleanup of them. Which of the following commands will accomplish this task?
Armmod -c
Bdepmod -r
Cinsmod -c
Dmodprobe -r
✓ Verified Answer: D
Question #145Part 3
A Linux administrator looks at the /etc/timezone file and determines the need to change the time zone from California to New York temporarily. Which of the following commands will accomplish this?
Ased -f TZ=America/New_York
Bcat TZ=America/New_York
Cexport TZ=America/New_York
Dprintf TZ=America/New_York
✓ Verified Answer: B
Question #146Part 3
A user has been locked out of an account due to too many failed password attempts. Which of the following commands will unlock the user's account?
Apam_tally2 --user=user --reset
Bpasswd -u user -G root
Cusermod -u user -G root
Dchage -1 user=user --reset
✓ Verified Answer: B
Question #147Part 3
A systems administrator receives a report that the web server is not running after a planned system reboot. After starting the web server manually, which of the following commands should the administrator issue to ensure the web server starts at boot time?
Asystemctl service on
Bsystemctl enable .service
Csystemctl service enable
Dsystemctl on .service
✓ Verified Answer: B
Question #148Part 3Select 2
A technician wants to secure a sensitive workstation by ensuring network traffic is kept within the local subnet. To accomplish this task, the technician executes the following command: echo 0 > /proc/sys/net/ipv4/ip_default_ttl Which of the following commands can the technician use to confirm the expected results? (Choose two.)
Atcpdump
Btraceroute
Croute
Diperf
Eip
✓ Verified Answer: AB
Question #149Part 3
An administrator needs to create a file named hello in the home directory that contains the following text: it's me! Which of the following commands would accomplish this goal?
Amkdir ~/hello touch ~/"it's me!"
Btouch ~/hello echo "it's me!" > ~/hello
Cmv ~/hello cp "it's me!" > ~/hello
Dtype ~/hello print "it's me!"
✓ Verified Answer: B
Question #150Part 3
Which of the following commands will let a Linux user know the PCI devices that are installed in the system?
Acat /proc/devices/pci
Blspci
Clsdev
Dcat /proc/sys/dev
✓ Verified Answer: D
Question #151Part 3
A Linux administrator is updating iptables rules and is given the following tasks: ✑ Output a list of iptables rules. ✑ Remove all iptables rules. Which of the following actions should be performed from the terminal console to accomplish these tasks? (Choose two.)
Aiptables -F
Biptables -L
Ciptables -I
Diptables -C
Eiptables -A
✓ Verified Answer: C
Question #152Part 3Select 2
A junior Linux administrator is performing version control on a Git repository. The administrator is given a list of tasks to complete: ✑ List the currently installed Git release. ✑ Show the status reporting of the clone. Which of the following commands would allow the administrator to complete these tasks? (Choose two.)
Agit clone --progress
Bgit clone --recursive
Cgit --help
Dgit clone --dissociate
Egit --version
✓ Verified Answer: AE
Question #153Part 3
A systems administrator needs to allow the Linux server to receive HTTP connections from Internet hosts. By default, the port for HTTP connections is blocked. Which of the following rules should be added in the firewall to allow this type of connection?
Afirewall-cmd --zone=public --add-port=443/tcp --permanent
Bfirewall-cmd --zone=internal --add-port=80/tcp --permanent
Cfirewall-cmd --zone=public --add-port=80/tcp --permanent
Dfirewall-cmd --zone=internal --add-port=443/tcp --permanent
✓ Verified Answer: A
Question #154Part 3
A Linux administrator attempts to install the package newprogram.x86_64.rpm using a package manager. The administrator receives a warning indicating the command that was run was using a deprecated package manager. Which of the following commands should the administrator use to avoid the warning and install the newprogram.x86_64.rpm program?
A# dnf install newprogram.x86_64.rpm
B# rpm -e newprogram.x86_64.rpm
C# dpkg -i newprogram.x86_64.rpm
D# apt-get install newprogram.x86_64.rpm
✓ Verified Answer: D
Question #155Part 3Select 2
Which of the following would allow remote users to access a corporate server? (Choose two.)
AVPN server
BSMTP server
CNTP server
DSSH server
EDHCP server
✓ Verified Answer: AD
Question #156Part 3
A junior administrator is configuring local name lookups for fully qualified domain names in an isolated environment. The administrator is given a checklist and must accomplish the following tasks: ✑ Add localhost with loopback address. ✑ Add 192.168.192.12/24 to resolve to database01.comptia.org Given this scenario, which of the following steps should the administrator perform to accomplish these tasks?
AOpen the /etc/nsswitch.conf file with a file editor and add the following lines: 127.0.0.1 localhost 192.168.192.12 database01.comptia.org
BOpen the /etc/dhcpd.conf file with a file editor and add the following lines: 127.0.0.1 localhost 192.168.192.12 database01.comptia.org
COpen the /etc/hosts file with a file editor and add the following lines: 127.0.0.1 localhost 192.168.192.12 database01.comptia.org
DOpen the /etc/network file with a file editor and add the following lines: 127.0.0.1 localhost 192.168.192.12 database01.comptia.org
✓ Verified Answer: A
More COMPTIA Certification Practice Exams
Explore related COMPTIA exam dumps and free practice question banks.
220-1001204 Questions
CompTIA A+ Certification Exam: Core 1
220-1002235 Questions
CompTIA A+ Certification Exam: Core 2
220-1101279 Questions
CompTIA A+ Certification Exam: Core 1
220-1102335 Questions
CompTIA A+ Certification Exam: Core 2
220-120191 Questions
CompTIA A+ Certification Exam: Core 1
220-120287 Questions
CompTIA A+ Certification Exam: Core 2
220-90165 Questions
CompTIA A+ (220-901)
220-9027 Questions
CompTIA A+ (220-902)
CA1-0056 Questions
CompTIA SecurityX
CAS-0026 Questions
CompTIA Advanced Security Practitioner (CASP)
CAS-003189 Questions
CompTIA Advanced Security Practitioner (CASP) CAS-003
CAS-00465 Questions
CompTIA Advanced Security Practitioner (CASP+) CAS-004
📢 Unlock Full Access to Success!
"The content displayed here is a promotional preview and contains only 50% of the actual exam database. To access the complete set of updated questions, please upgrade to the Full Version."
👉 Click the button and follow the instructions to secure your full access immediately!