0% found this document useful (0 votes)
21 views

quizlet

Linux quiz

Uploaded by

dobgima.gc3618
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views

quizlet

Linux quiz

Uploaded by

dobgima.gc3618
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

Actual Test Questions

Study online at quizlet.com/_8jql2g

1. An administrator has modified the kill -HUP 9. An administrator needs to mount the # mkdir
configuration file for a service. The service is shared NFS file system testhost:/testvolume
still running but is not using the new testhost:/testvolume to mount point at /mt/testvol
configured values. Which of the following will /mnt/testvol and make the mount # mount -a
BEST remediate the issue? persistent after reboot.
2. An administrator has written the following The
Which of the following BEST
Bash script: shebang
demonstrates the commands
points to
necessary to accomplish this task?
/home/user/test.sh the wrong
path 10. An administrator needs to see a list /etc/passwd
#!/usr/bin/sh of the system user's encrypted
for i in 'cat /home/user/iplist.txt' passwords. Which of the following
do Linux files does the administrator
nslookup $i need to read?
done
11. An administrator needs to see the /proc/cpuinfo
echo
type of CPU that a server is running.
3. An administrator is analyze a Linux server pam_tally2 Which of the following files contains
which was recently hacked. Which of the this information?
following will the administrator use to find all
12. An administrator notices that a long- renice
unsuccessful login attempts?
running script, /home/user/script.sh, is
4. An administrator is attempting to block SSH iptables -A taking up a large number of system
connections to 192.168.10.24 using the Linux -p tcp -d resources. The administrator does not
firewall. After implementing a rule, a 192.168.10.24 know the script's function. Which of
connection refused error is displayed when -dropt 22 -j the following commands should the
attempting to SSH to 192.168.10.24. REJECT administrator use to minimize the
Which of the following rules was MOST likely script's impact on system resources?
implemented?
13. An administrator receives a warning lsof | grep
5. An administrator is tasked with increasing the lvextend - about a file system filling up, and largelogfile
size of the volume /dev/vg/lv to 20GB. Which L20G then identifies a large file located at
of the following BEST illustrates the steps the /dev/vg/lg; /tmp/largelogfile. The administrator
administrator should take? resize2fs deletes the file, but no space is
/dev/vg/lg recovered on the file system. Which
of the following commands would
6. An administrator needs to change the IP nohup
BEST assist the administrator in
address on a server remotely. After updating service
identifying the problem?
the configuration files, a network restart is network
needed. However, the administrator fears that restart 14. An administrator reviews the JSON
when the network connection drops, the following configuration file provided
network restart script will be killed before b a DevOps engineer:
the new IP address has been set. Which of
the following commands would prevent the Tasks:
script from being killed? -name: Install php-fpm from repo
yum:
7. An administrator needs to create a shared rwxrwxrwx
name: php-fpm
directory in which all users are able to read,
state: present
write, & execute its content but none of the
-name: Install mysql from rep
regular users are able to delete any content.
yum:
Which of the following permissions should be
name: mysql-server
applied to this shared directory?
state: present
8. An administrator needs to deploy 100 Kickstart
identical CentOS workstations via PXE boot. script
Which of the following should the
administrator use to minimize the amount of
interaction with the consoles needed?
15. After starting a long-running 1. CTRL-Z 18. A(n) _____ backup includes all files incremental
script, a systems administrator 2. bg that have changed since the last
needs to verify the frequency of 3. watch df /var incremental or full backup. An incremental backup
what is filling up the /var partition 4. CTRL-Z includes all files that
and kill it because it is consuming 5. fg have changed since the
too much space. Which of the 6. CTRL-C last incremental or full
following is the correct sequence backup. With a full
given only a terminal is available? backup, everything
from the source is
16. All users are reporting that they Allow SFTP
backed up. A
cannot connect to the SFTP server. connections on port 22
differential backup
The administrator runs a scan: using
archives; any files since
/etc/sysconfig/iptables
the last full backup.
starting nmap 4.11 at 2018-06-16
There is no such term
EST
as a complete backup.
not shown: 1456 closed ports
19. Ann, a junior Linux administrator, wget
PORT STATE. SERVICE needs to copy software from her [email protected]:/tmp
53/tcp. open. dns local machine to assist in -f ~/software.rpm. or
80/tcp. open. http developing a software application scp ~/software.rpm
957. open. unknown on a remote machine with the IP [email protected]:/tmp
address 192.168.3.22. The file
MAC Address 08:00:00:00:00:00 ( needs to be placed on the /tmp
computer systems ) directory. After downloading the
nmap finished = 1 ip address ( 1 RPM to the local machine, which
host up ) scanned in 1.497 seconds of the following commands would
You have mail in be BEST to use to copy the
/var/spool/mail/root software?
20. Ann performs some diagnostics chattr -l /etc/yum.conf
Which of the following would allow
to attempt to find the root cause?
the administrator to fix the
problem?
root@comptia:~# ls -l
17. An analyst is trying to determine $(cat ip-list.txt) should /etc/yum.conf
which public IP addresses are be changed to 'cat ip- -rw-r-r-1 root root 970 Jan 30
managed by Company A, but the list.txt' in the for 2018 /etc/yum.conf
script is not working correctly. statement.
root@comptia:~# ls -l
for ip in $(cat ip-list.txt ) /etc/yum.conf
do whois $ip | grep "Company A" > ----i-------e-- /etc/yum.conf
/dev/null
21. #/bin/bash "$1" -> for -> in ->
if [ $? -ne 0 ]
/tmp/tempfile ->gzip ->
then echo "$ip"
#name: script.sh done
fi
done
find /var/log -type f -maxdepth 1
| grep "$1 > /tmp/tempfile
Which of the following explains
what is wrong with the script?
for filename in $(cat
/tmp/tempfile)

do

gzip $filename

done
22. ChainINPUT (policyACCEPT) Add iptables 27. An engineer is working on a git push
rule iptables production application deployment server.property
target prot opt source destination -A that requires changing a web
ACCEPT tcp -- anywhere anywhere tcp FORWARD - application property file called
dpt;webcache m state -- server.property that is managed by
state NEW - the Git version control system. A
Chain FORWARD (policy ACCEPT) p tcp --dport cloned copy of the remote repository
8080 -j in which the server.property file exists
target prot opt source destination ACCEPT is on the local desktop computer. The
ACCEPT tcp -- anywhere anywhere then restart engineer makes appropriate changes
dpt;webcache httpd to the files, saves it as
daemon server.property, and executes git
Chain OUTPUT (policy ACCEPT) commit -m "changed the property.
Which of the following commands did
target prot opt source destination the engineer fail to perform?
28. A four-drive Linux NAS has been RAID 10
Output of netstat -nltop | grep "8080":
improperly configured. Each drive has
a capacity of 6TB, for a total storage
tcp 0.0.0.0:8080 0.0.0.0* Listen 12801/httpd
capacity of 24TB. To reconfigure this
23. A company wants to ensure that all newly umask 0022 unit to be not pluggable for drive
created files can be modified only by their replacement and provide total
owners and that all new directory content storage of 11TB to 12TB, which of the
can be changed only by the creator of the following would be the correct RAID
directory. Which of the following commands configuration?
will help achieve this task?
29. Given that a company's policy states VNC
24. A configuration management tool running systemctl that users cannot install third-party
every minute is enforcing the service HTTPd stop httpd tools on Windows servers, which of
to be started. To perform maintenance, && systemctl the following protocols will allow a
which of the following series of commands mask httpd Linux GUI to connect to a Windows
can be used to prevent the service from server?
being started?
30. Given the output below: ln -rm
25. A datacenter administrator assigns a ticket Kill -s ./Pictures/photo.jpg
to a junior Linux administrator regarding a SIGCHLD drwxr-xr-x. 4096 user1 user1
Linux server that is presenting issues with pid Documents
excessive CPU consumption and causing drwxr-xr-x. 4096 user1 user1 Music
instability in a specific application. The lrwxrwxrwx. 1 root. root MyPhoto.jpg -
junior Linux administrator troubleshoots the >/Pictures/photo.jpg
Linux server and finds several zombie drwxr-xr-x. 4096 user1 user1 Pictures
processes running on it. -rw-r--r--. 256 user1 user1 text.txt
-rw-r--r--. 35 user1 user1 tmp.tmp
Which of the following commands would
effectively fix the issue? Which of the following commands can
be used to remove MyPhoto.jpg from
26. The development team has automated their To streamline
the current directory?
software build process so each time a the
change is submitted to the source code deployment
repository, a new software build is process for
compiled. They are requesting that the deploying
Linux operations team look into automating builds into
the deployment of the software build into test
the test environment. Which of the environments
following is the benefit to the development
team for implementing deployment
automation?
31. If you want STDOUT to be sent tee 36. A junior administrator of a physical free :
both to the terminal and to a file, server receives log messages indicating swapoff/swapfile
send the output to the _____ If you want STDOUT to the out-of-memory killer has been ; swapon -a
command. be sent both to the active. All memory slots are in use on
terminal and to a file, the motherboard, but additional disk
send the output to the space is available. Space has been
tee command. The allocated for a swap file.
xargs command takes Which of the following should the
data from STDIN to administrator use to reduce the output
build and execute of memory messages?
commands. The tr
37. A junior Linux administrator is installing ps -ef | grep
command is useful for
patches using YUM. The administrator yum
translating characters
issues the following command:
from one set to
yum list installed
another. The echo
The output of the command is as follows:
command is useful for
displaying information
Loaded plugins: fastmirror, langpacks
to standard output.
Existing lock /var/run/yum.pid: another
32. In order to comply with new /etc/ssh/sshd_config copy is running as pid 5180.
security policies, an administrator Another app is currently holding the
needs to prevent the SSH server yum lock; waiting for it to exit...
from using insecure algorithms. The other application is yum
Which of the following files should Memory 26 M RSS (r415 MB VSZ)
be edited to accomplish this? Started: Fri Jun 15 08:05:15 2018 - 2:18:48
ago
33. Joe, a user, is unable to log in to passwd -u joe
State: Traced/Stopped pid: 5180
the server and contracts the
systems administrator to look into
Given this scenario and the output, which
the issue. The administrator
of the following should the administrator
examines the /etc/passwd file and
do to address this issue?
discovers the following entry:
38. A junior Linux administrator is optimizing Issue the
joe:x:505:505::/home/joe:/bin/false a system in which an application needs command renice
to take priority 0 when running the -n 0 -p 8481
Which of the following commands process. The administrator runs the ps
should the administrator execute command and receives the following
to resolve the problem? output:
34. A junior administrator is migrating OVA
PID PPID. TTY. Time. CMD
a virtual machine from Type 1
8481 2. pts/17. 16:40:00. app
hypervisor to a Type 2 hypervisor.
9854. 0. pts/17 16:40:00 ps
To ensure portability, which of the
Given this scenario, which of the
following formats should the
following steps will address this issue?
administrator export from the
Type 1 hypervisor to ensure 39. A junior Linux administrator is trying to ping -c 10 host1
compatibility? verify connectivity to the remote host
host1 and display round-trip statistics for
35. A junior administrator needs to modprobe
ten ICMP requests.
unload an older video kernel
Which of the following commands
module.
should the administrator execute?
Which of the following commands
would BEST accomplish this task?
40. A junior Linux administrator is Modify the /etc/hosts 45. A junior systems administrator is 24 *** Monday
updating local name resolution to file, and add the creating a cron job. The cron job hello.sh
support IPv6. The administrator 0.0.0.0 localhost entry requirements are as follows:
issues the command cat /etc/hosts to the file -run the hello.sh script every hour
and receives the following output: (24 times in one day).
127.0.0.1 localhost -run it on Monday only
Given this scenario, which of the
Which of the following actions following crontab options should be
should the administrator perform configured to meet these
to accomplish this task? requirements?
41. A junior Linux administrator needs ~/.ssh/authorized_keys 46. A junior systems administrator is 1. yum install
to access production servers using upgrading a package that was <package name>
a secure SSH protocol. Which of installed on a Red Hat-based 2. rpm -qa
the following files should contain system. The administrator is tasked
the public key to gain remote with the following:
access to the server? -update & install the new package
-verify the new package version is
42. A junior Linux administrator needs chkconfig <service> on
installed.
to ensure a service will start on
system boot. Which of the
Which of the following should be
following commands should be
done to BEST accomplish these
used to accomplish this task?
tasks? (choose two)
43. A junior systems administrator Change the options to
47. The lead Linux has added a disk, 1. pvcreate /dev/sdd
created a new filesystem auto,dev,sync,rw,nosuid
/dev/sdd, to a VM that is running out 2. vgextend vg data
/dev/sda1 with mountpoint /data and run the mount -a
of disk space. Place the following /dev/sdd
and added it to the /etc/fstab for command.
steps in the correct order from first 3. lvextend -L +10GB
auto-mounting. When the systems
(!) to last (4) to add the disk to the /dev/mapper/vgdata-
administrator tries to mount the
existing LVM. data
file system, the system refuses.
4. resize2fs
Given the output below:
/dev/mapper/vgdata-
data
/dev/mapper/VolGroup00-Log-
Vol00 / xfs defaults 0 0 48. A Linux administrator built a GitLab iptables -A INPUT -p
dev/sda1 /data xfs server. Later that day, a software tcp -m multiport --
noauto,dev,sync,ro,nosuid 0 0 engineer tried to access the server dports 80, 443 -m
/dev/mapper/VolGroup00-Log- to upload the repository during the conntrack -cstate
Vol101 swap swap. defaults0 0 final step of installation. The RELATED,
/dev/sda2 /mine ext4. software engineer could not access ESTABLISHED -j
auto,suid,sync,rw,dev. 0 0 the website. Which of the following ACCEPT
firewall rules would allow access to
44. A junior systems administrator is -locale
this site?
configuring localization option -export LANG =
environment variables. The en_US.UTF-8
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).
49. A Linux administrator has echo "1" > 52. A Linux administrator is confirming information cat /etc/resolv.conf
configured a Linux system to /prc/sys/net/ipv4/ip_forward on a system. The administrator issues a series of
be used as a router. The commands and views the following output:
administrator confirms that
two network adapters are search homebizbook.com nameserver
properly installed and 205.70.100.12 nameserver 205.70.100.13
functioning correctly. In
addition, the output of the Which of the following commands did the
iptables - administrator issue?
L command appears to
53. A Linux administrator is investigating an last
contain a complete firewall
unscheduled restart of an application server
configuration.
and wants to check for successful logins prior
Which of the following
to the restart. Which of the following commands
commands does the
would display this information?
administrator need to issue
for the router to be fully 54. A Linux administrator is setting up a testing # hostnamectl set-
functional? environment and needs to connect to a hostname "192.168.1.100
separate testing server using the production production.company.com"
50. A Linux administrator Run netcat to ensure the
server name. The administrator needs to
implemented a new HTTP port is correctly bound, and
override the hostname that the DNS is returning
server using the default configure a static route to
in order to use the test environment. Which of
configuration. None of the the web to allow access on
the following commands should be run on each
users on the network can ports 80 and 443.
of the testing systems to BEST meet this goal?
access the server. If there is
no problem on the network 55. A Linux administrator issues the following rpm -i installpackage.rpm
or with the users' command with root or sudo privileges: --nodeps
workstations, which of the
following steps will BEST rpm -i installpackage.rpm
analyze and resolve the
issue? Once the command is issued, the console
outputs the following error message: failed
51. A Linux administrator chkconfig --level 345
dependency. The administrator confirmed in a
installed a new network network on
previous step that all dependencies have
adapter and temporarily
already been installed.
disabled the network service
from starting on boot. The
Which of the following commands should the
partial output of chkconfig is
administrator issue to bypass this error
as follows:
message?

network 0:off 1:off 2:off 3:off 56. A Linux administrator is testing a new web httpd_can_network_connect
4:off 5:off 6:off application on a local laptop and consistently =1
shows the following 403 errors in the laptop's
Which of the following logs:
commands BEST describes type=AV msg=audit(126552035:37232):avc:denied
how the administrator should {read} for pid=24941 com=ngix
re-enable the network nme="/home/user1" /dev/sda1 ino=2
service? scontext=unconfined_u:system_r:httpd_t:s0
tcontext=system_u:object_r:httpd_sys_content:s0

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?
57. A Linux administrator is ping remotehost < results 62. A Linux administrator needs # sudo -i tech
testing connectivity to a the "tech" account to have the
remote host on a shared option to run elevated
terminal. The administrator commands as root.
wants to allow other users Which of the following
to access the terminal while commands would BEST meet
the command is executing. this goal?
Which of the following
63. A Linux administrator needs to tar -czvf domain.tar.gz
commands should the
back up the folder /usr/domain, /usr/domain
administrator use?
and the ouput must be a gzip
58. A Linux administrator is echo "1" > compressed tar. Which of the
using a Linux system as a /proc/sys/net/ipv4/ip_forward following commands should be
router. During the tests, the used?
administrator discovers that
64. A Linux administrator needs to curl
IP packets are not being
remotely update the contents www.comptia.org/contacts
sent between the
of the
configured interfaces.
www.comptia.org/contacts URL.
Which of the following
Which of the following
commands enables this
commands would allow the
feature for IPv4 networks?
administrator to download the
59. A Linux administrator is Build automation current contents of the URL
using a public cloud before updating?
provider to host servers for
65. A Linux administrator needs to 13 15 5 df > /freespace
a company's website. Using
schedule a cron job to run at
the provider's tools, the
1:15pm every Friday to report
administrator wrote a JSON
the amount of free disk space
file to define how to deploy
on the system and to send the
the servers. Which of the
output to a file named
following techniques did the
"freespace". Which of the
administrator use?
following would meet this
60. A Linux administrator must du -sh /home/User/ requirement?
identify a user with high disk
66. a Linux administrator needs to chmod 750 <application
usage. The administrator
set permissions on an name>
runs the # du -s /home/*
application with the following
command and gets the
parameters:
following output:
-the owner of the application
should be able to read, write,
43 /home/User1
and execute the application.
2701 /home/User2
-members of the group should
133089 /home/User3
be able to read and execute
3611 /home/User4
the application.
61. A Linux administrator needs chmod g+s <directory> -Everyone else should not
every new filed created on have access to the application.
a directory to maintain the Which of the following
group permissions of the commands would BEST
same directory. Which of accomplish these tasks?
the following commands
67. A Linux administrator needs to Runlevel 5
would satisfy this
switch from text mode to GUI.
requirement?
Which of the following
runlevels will start the GUI by
default?
68. A Linux lsusb 71. A Linux administrator wants to git clone
administrator fetch a Git repository from a
needs to take a remote Git server.
stock of USB Which of the following is the BEST
devices attached command to perform this task?
to the system.
72. A Linux administrator wants to #/bin/bash
Which of the
obtain a list of files and locate /etc -sort -name
following
subdirectories in the /etc services >
commands would
directory that contain the word /var/tmp/foundservices
be BEST to
"services". Once the files and
complete this
subdirectories are discovered,
task?
they should be listed
69. A Linux insmod /lib/modules/3.6.12-100- alphabetically in the
administrator generic/kernel/drivers/usb/storage/usb- /var/tmp/foundservices files.
opens a ticket to storage.ko Which of the following shell
have an external scripts will accomplish this task?
hard drive
73. A Linux server has been sar
mounted. As a
experiencing performance spikes
security policy,
over the course of two weeks. The
external storage
administrator needs to create a
kernel modules
report and determine the cause
are disabled.
of the performance spikes.
Which of the
following is the
Which of the following commands,
BEST command
along with information in
for adding the
/var/log/messages, will help
proper kernel
troubleshoot the issue?
module to enable
external storage 74. A Linux server has multiple IPs. A netstat
modules? Linux administrator needs to
verify if the HTTP server port is
70. A Linux pull
bound to the correct IP. Which of
administrator
the following commands would
retrieved a
BEST accomplish this task?
repository of files
from a Git server 75. A Linux server is providing time Change the default
using git clone. services to several VMs. Which of port
The administrator the following hardening
wants to see if a techniques will BEST reduce the
configuration file risk of the time server being
was added to the target for an attack?
repository. Which 76. A Linux server needs to be Boot into single-user
of the following accessed, but the root password is mode and reset the
Git arguments not available. password via the
should be used to Which of the following would passwd command
see the recent BEST allow an administrator to
modifications? regain access and set a new
known password at the same
time?
77. A Linux storage administrator vgcreate
wants to create a logical volume
group. Which of the following
commands is required to start the
process?
78. A Linux system is running normally killall application 84. A member of the production chown production to change
when the systems administrator group issues the following the ownership of the
receives an alert that one command: production_docs directory
application spawned many
processes. The application is echo "Monday through
consuming a lot of memory, and it Friday" >
will soon cause the machine to /production_docs/days
become unresponsive. Which of the The command fails to
following commands will stop each execute, so the user obtains
application process? the following output:
drwxr--r-- root production 0
79. A Linux systems administrator setenforce 0
Jun 16 2018 production
installed a new web server, which
-rw-r--r-- production
failed while attempting to start. The
production 4096 Jun 14 2018
administrator suspects that SELinux
days
is causing an issue and wants to
temporarily put the system into
Which of the following
permissive mode. Which of the
commands should the user
following would allow the
execute to BEST fix the
administrator to accomplish this?
issue?
80. A Linux systems administrator is Use ssh-copy-id to
85. A network has been crashing SERVER="192.168.1.50"
setting up SSH access with PKI for copy each user's
intermittently. A Linux ping -c 2 $SERVER >dev/null
several using their newly created public key file to the
administrator would like to 2>/tmp/fail.log
RSA keys. Which of the following respective system
write a shell script that will if [ -f /tmp/fail/log ]; then
MOST securely achieves this task?
attempt to ping the server ech "Server is down" | mail -s
81. A Linux systems administrator needs scp -r working/* and email an alert if the "Server down"
to copy the contents of a directory webuser@corporate- server fails to respond. The admin@email_address.com
named "working" on the local web:/var/www/html script will later be scheduled fi
working system to a folder via a cron job. Which of the
/var/www/html on a server named following scripts would BEST
"corporate-web". accomplish this task?
Which of the following commands
86. A new corporate policy echo "modprobe bluetooth"
will allow the administrator to copy
states that Bluetooth should >
all the contents to the web server?
be disabled on all company /etc/modprobe.d/modprobe-
82. A Linux systems administrator needs To ensure the laptops. Which of the bluetooth
to provision multiple web servers administrator following commands would
into separate regional datacenters. follows the planning disable the use of
The systems architect has instructed phase of the systems Bluetooth?
the administrator to define the development life
87. A new HTTPS web service is iptables -I INPUT --dport
server infrastructure using a specific cycle
being deployed on a server. 443 -j ACCEPT
tool that consumes a text-based file.
Which of the following
Which of the following is the BEST
commands should the Linux
reason to do this?
administrator use to ensure
83. A Linux systems administrator wants id_rsa.pub traffic is able to flow through
the ability to access systems the system firewall to the
remotely over SSH using RSA new service?
authentication. To which of the
following files should the RSA token
be added to allow this access?
88. An operator ls -Z 90. [root@localhost comptia]# mount The logical volume
finds a user is /dev/datavg/datalv /data is not active. The
having issues mount: special device administrator
with opening /dev/datavg/datalv does not exist should make it
certain files. active with
Which of the Upon checking the logical volume lvchange -ay
following status, the administrator receives this /dev/datavg/datalv
commands information: and then mount it
would allow
the security [root@localhost comptia]# lvs
administrator LV VG Attr LSize Pool Origin Data%
to list and Meta% Move Log Cpy%Sync Convert
check the root centos -wi-ao---- <6.20g
SELinux swap centos -wi-ao---- 820.00m
context? datalv datavg -wi------ 500.00m
[root@localhost comptia]#
89. The _____ option -r
to the rsyslogd
Which of the following can be said
command The -r option to the rsyslogd command
about the data logical volume, and
enables the enables the daemon to accept logs from
how can this problem be resolved?
daemon to other systems. The -d option to the
accept logs rsyslogd command enables debugging 91. A server is almost out of free memory free, fack,
from other mode. The -m option to the rsyslogd and is becoming unresponsive. Which partprobe
systems. command is used to create regular of the following sets of commands
timestamps. The -S option to the rsyslogd will BEST mitigate the issue?
command enables verbose mode.
92. SIMULATION See the
Find the file named core and remove explanation.
it from the system.
INSTRUCTIONS root@tryit-sought:-
Type "help" to display a list of # find . -type f -
available commands. If at any time name "FILE-TO-
you would like to bring back the intial FIND" -exec rm -f
state of the simulation, please click {} \;
the Reset All button.
Linux shell root@tryit-sought:-
# find . -type f -
core "FILE-TO-
FIND" -exec rm -f
{} \;
93. A systems administration team has Infrastructure as
decided to their systems as immutable code
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?
94. A systems administrator configured a modinfo 99. A systems administrator is cd /etc
new kernel module, but it stopped configuring options on a ln -s
working after reboot. Which of the newly installed Linux VM /usr/share/zoneinfo/US/Pacific
following will allow the systems that will be deployed to localtime
administrator to check for module the Pacific time zone.
problems during server startup? Which of the following sets
of commands should the
95. A systems administrator has deployed a /root/anaconda-
administrator execute to
Linux server based on an Anaconda ks.cfg
accurately configure the
process with all packages and custom
correct time settings?
configurations necessary to install a
web server role. 100. A systems administrator is quotaon /home
Which of the following could be used to enabling quotas on the
install more Linux servers with the same /home directory of a Linux
characteristics? server. The administrator
makes the appropriate
96. A systems administrator has finished Merge the
edits to the /etc/fstab file
building a new feature for the changes from the
and attempts to issue the
monitoring software in a separate Git feature branch to
commands to enable
branch. the master
quotas on the desired
Which of the following is the BEST branch.
directory. However, the
method for adding the new feature to
administrator receives an
the software's master branch?
error message stating the
97. A systems administrator has received tracert filesystem does not
reports of intermittent network www.comptia.org support quotas. Which of
connectivity to a particular website. the following commands
Which of the following is the BEST should the administrator
command to use to characterize the perform to proceed?
localization and type of failure over the
101. A systems administrator is route add -net 192.168,10.0
course of several minutes?
unable to reach other netmask 255.255.255.0 gw
98. A systems administrator has set up a /etc/rsyslog.conf devices on the network 192.168.2.1 eth0
third-party log aggregation agents and the Internet. The
across several cloud instances. The server is configured with
systems administrator wants to create a the IP address
dashboard of failed SSH attempts and 192.169.1.50/24 on eth0. The
the usernames used. server's router is 192.168.1.1.
The administrator reviews
Which of the following files should be the output of route -n:
watched by the agents?
Kernel IP routing table
Destination Gateway
Genmask Flags Metric Ref
Use Iface
0.0.0.0 192.168.2.1 0.0.0.0.
UG. 1024 0. 0. eth0
192.168.1.0. 0.0.0.0.
255.255.255.0 U. 0. 0. 0 eth0
102. A systems administrator must tar -cvf 108. A systems administrator wants to Containers
clean up all application files in the applicationfiles.tar.bz2 deploy several applications to the same
directory /var/log/app. However, /var/log/app/* server quickly. Each application should
the company's security policy be abstracted from the host with its
requires the files to be kept on the own dependencies and libraries and
backup server for one year. The utilize a minimal footprint. Which of the
Linux server has only the tar and following would be BEST in this
bzip2 packages installed. scenario?
Which of the following commands
109. A systems administrator wants to create a MOTD
will package and compress the
ensure users are greeted with a warning or banner
files?
message when they log in to deter
103. A systems administrator needs to ls -lha/opt>>test.txt fraudulent activity. The systems
append the output of ls -lha/opt administrator should:
command to the contents of a
110. A systems administrator wants to know sudo killall -USR1
test.txt file. Which of the following
the current status of a series of dd jobs dd
commands will accomplish this?
that were started in the background
104. A systems administrator needs to lsmod, modprobe, three hours ago.
install a new piece of hardware modinfo Which of the following commands will
that requires a new driver. The achieve this task?
driver should be manually
111. A systems administrator wants to load /etc/modprobe.d
installed. Which of the following
custom modules. Which of the following
describes the order of commands
directories is most appropriate to keep
required to obtain schedule
load modules settings persistent?
information, install the module,
and check the log for any errors 112. A technical support engineer receives a the filesystem
during module installation? ticket from a user who is trying to ran out of inodes
create a 1KB file in the /tmp directory
105. A systems administrator needs to awk
and is getting the following error: No
retrieve specific fields from a csv
space left on device. The support
file. Which of the following tools
engineer checks the /tmp directory,
would accomplish this task?
and it has 20GB of free space. Which of
106. A systems administrator observes mtr the following BEST describes a possible
high latency values when reaching cause for this error?
a remote web server. Which of the
113. A technician wants to secure a sensitive 1. route
following commands will help
workstation by ensuring network traffic 2. arp
determine and isolate issues on
is kept within the local subnet. To
the network side?
accomplish this task, the technician
107. A systems administrator suspects a renice -n -10 -p 2864 executes the following command:
process with a PID of 2864 is echo 0 >
consuming resources at an /proc/sys/net/ipv4/ip_default_ttl
alarming rate. The administrator Which of the following commands can
uses. the command renice -n -5 - the technician use to confirm the
p2864, but it does not solve the expected results? (Choose two).
issue. Which of the following
114. Two specific users need access to a setfacl
commands should the
directory owned by root where backups
administrator execute to correct
are located. Which of the following
the issue?
commands would BEST ensure the
specified users can access the backup
files?
115. A user attempts to mkdir -p /mnt/test 120. Which of the following are KDE
use the mount -a Linux desktop managers? GNOME
command but gets the (choose two).
following error:
121. Which of the following BEST Containers use the cgroups
mount: mount point
describes containers running and namespaces
/mnt/test does not
on a Linux system? functionalities to isolate
exist
processes and assign
Which of the following
hardware resources to each
commands best
of those isolated
describes the action
processes.
of the Linux
administrator should 122. Which of the following BEST X11 provides the graphical
take NEXT? describes the purpose of the display capabilities
X11 system?
116. A user has connected modprobe -r bluetooth
a Bluetooth mouse to 123. Which of the following can be UEFI
a computer, but it is used to boot a DVD from a
not working properly. remote device to initialize a
Which of the following Linux system setup on bare
commands should the metal hardware as if it is a
systems administrator local DVD?
use to fix the issue? 124. Which of the following lpq
117. A user, jsmith, needs useradd -g dba jsmith & usermod - commands would show the
access to database a -G dba jsmith default printer on a Linux
files located on a system?
server. Which of the 125. Which of the following /etc/inittab
following will add configuration files should be
jsmith to the "dba" modified to disable
group and preserve Ctrl+Alt+Del in Linux?
existing group
126. Which of the following is a Users can comment in
memberships?
difference between YAML YAML but not in JSON
118. A user wants to list #!/bin/bash and JSON?
the lines of a log, LOG='/var/log/auth.log'
127. Which of the following is update-grub
adding a correlative nrlines=0
modified to reconfigure the
number at the while read LINE
boot environment?
beginning of each line do
separated by a set of nrlines=$(nrlines + 1) 128. Which of the following is the If log files fill up /var, it
dashes from the actual echo $nrlines --- ${LINE} BEST reason for not storing might corrupt the database
message. Which of the done < ${LOG} database files in the /var
following scripts will directory?
complete this task? 129. Which of the following is the To collect status and
119. Which command can modinfo e1000 purpose of the monitoring performance information
be used to display the server role? about the servers in an
parameters (parm) for A kernel's options (also called environment.
the e1000 kernel params or parameters) are based 130. Which of the following is the To provide the executable
module? on features supported by a specific purpose of the vmlinux file on kernel for the system
module. To see these features, a Linux system?
display the module's parms using
the modinfo command. While 131. Which of the following is the /etc/default/grub
modprobe and lsmod are valid template for the grub.cfg
commands, neither supports the file?
option to display a module's 132. Which of the following ls ls -la
parameters. There is no modparm command options will list
command. hidden files and folders?
133. Which of the RAID 0 139. While creating a file on a Run the df -i command and
following RAID volume, the Linux notice the inode exhaustion
levels provides no RAID 0 provides no redundancy but administrator receives the
redundancy but rather increases available storage by following message: No
rather increases merging multiple hard disks (or space left on device.
available storage partitions) into a single device. The Running the df -m
by merging original RAID (now called RAID 1) command, the
multiple hard mirrors data between two hard disks. administrator notes there is
disks (or RAID 5 writes different data to each still 50% of usage left.
partitions) into a physical storage device, with the Which of the following is
single device? exception of one device, which is used the NEXT step the
to store parity data. There is no RAID 8. administrator should take
to analyze the issue
134. Which of the DHCP
without losing data?
following server
roles would assign 140. You attempted to commit git merge
a host IP address? changes back to the origin,
but errors indicating a When conflicts arise, you
135. Which of the Hardware-specific RAM information
conflict appeared. This need to merge your work with
following
happened because another the existing content on the
statements BEST
user committed a change remote repository. The git
describes what
before you did. Which push, git commit, and git add
the command cat
command can be used to command don't support the --
/proc/meminfo
resolve this issue? force option.
will display?
141. You execute the following bi
136. Which of the Installation of a tool is not required on
command:
following the remote system to perform
[root@localhost ~]# bi, also called "blocks in,"
statements BEST orchestration tasks
vmstatprocs ----------- represents how many blocks
represents what
memory---------- ---swap- have been received from a
the term
- -----io---- -system-- ---- block device (such as a hard
"agentless" means
--cpu----- disk). bo, also called "blocks
regarding
r b swpd free buff cache si out," represents how many
orchestration?
so bi bo in cs us sy id wa st blocks have been sent to a
137. Which of the lsblk 2 0 0 776828 1704 2329456 block device (such as a hard
following will 0 0 49 89 115 120 6 1 93 0 0 disk). in is the number of
provide a list of interrupts on the system per
all flash, external, Which column of second. cs refers to the
internal, and SSD information represents number of context switches
drives? how many blocks have on the system per second.
138. Which of the VNC been received from a
following would block device?
be the BEST 142. You have been asked to -P
solution for a remove a package by using
systems the dpkg command. It is The -P option acts as a purge,
administrator to important to remove the removing the package and all
access the package as well as all of its configuration files. The -r
graphical user the package configuration option removes the package
environment of a files. Which option will you but keeps the configuration
Linux machine use? files. The -p and -R options
remotely? are not valid for removing
packages with the dpkg
command.
143. You have just created a new partition by using the fdisk mkswap /dev/sdc1
command. This new partition, /dev/sdc1, is going to be
used for swap space. What should be the next command After creating a swap partition, you must format it to be used as swap
you execute after exiting the fdisk utility? space before adding it to the swap space. This is done by running the
mkswap command. You may use the other commands listed here later
in the process, but the very next step is to use mkswap.
144. You want to create an environment variable. export
Which command is missing from the following?
A=100 The export command is used to convert a local variable into an
_____ A environment variable. The env and set commands can be used to
display variables. There is no dump command.

You might also like