The Actual Exam Version included actual exam questions verified by IT Experts. We verified questions and updated frequently each month and also based on members’ feedback to keep updating with the real exam. We are offering money back immediately if questions in our Actual Exam Version do not appear in your exam. Highly recommend you take the Actual Exam Version then go to the exam as soon as possible.
QUESTION NO: 121
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?
A.
B.
C.
D.
QUESTION NO: 122
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.
B. The for should be changed to while in the loop.
C. The > should be changed to 2> in the do statement.
D. The -ne flag should be changed to -eq in the if statement.
QUESTION NO: 123
All users are reporting that they cannot connect to the SFTP server. The administrator runs a scan:
Which of the following would allow the administrator to fix the problem?
A. Allow SFTP connections on port 22 using /etc/sysconfig/iptables.
B. Allow SFTP connections on port 20 and 21 using /etc/sysconfig/iptables.
C. Allow SFTP connections on port 25 using /etc/sysconfig/iptables.
D. Allow SFTP connections on port 1456 using /etc/sysconfig/iptables.
QUESTION NO: 124
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?
A. echo SELINUX=PERMISSIVE >> /etc/sysconfig/selinux
B. setenforce 0
C. sestatus 0
D. chcon httpd_sys_content_t /var/
QUESTION NO: 125
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?
A. systemctl stop httpd && systemctl mask httpd
B. systemctl disable httpd && systemctl mask httpd
C. systemctl stop httpd && systemctl hide httpd
D. systemctl disable httpd && systemctl hide httpd
QUESTION NO: 126
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?
A. The shebang points to the wrong path.
B. The script is not executable.
C. The formatting of the file is incorrect.
D. Nslookup is not installed.
QUESTION NO: 127
An administrator is troubleshooting an application that has failed to start after the server was rebooted. Noticing the data volume is not mounted, the administrator attempts to mount it and receives this error:
Upon checking the logical volume status, the administrator receives this information:
Which of the following can be said about the data logical volume, and how can this problem be resolved?
A. The logical volume is not active. The administrator should make it active with lvchange -ay
/dev/datavg/datalv and then mount it.
B. The logical volume file system has become corrupted. The administrator should repair it with xfs_repair /dev/datavg/datalv and then mount it.
C. The logical volume is OK but the /dev special files are missing. The administrator should recreate them by running /dev/MAKEDEV.
D. The file system is read-only. The administrator should remount it as read-write with the command mount -o remount.rw /data.
QUESTION NO: 128
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?
A. RAID 01
B. RAID 03
C. RAID 10
D. RAID 50
QUESTION NO: 129
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?
A. nice -n 5 -p 2864
B. nice -n -5 -p 2864
C. renice -n 10 -p 2864
D. renice -n -10 -p 2864
QUESTION NO: 130 DRAG DROP
You have been asked to parse a log file of logins to determine various information about who is logging in and when.
INSTRUCTIONS
Open and inspect the Login log file.
Drag and drop the correct commands onto the output that was generated from that command.
Tokens can be used only once and not all will be used.
If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.
Answer:
Explanation:
Awk ‘{print $1}’ lastlog | uniq
grep “Mar 13″ lastlog
tr “[A-Z]” “[a-z] < lastlog | grep -i “mar 12″
QUESTION NO: 131
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.)
A. curl
B. wget
C. make
D. tar
E. zip
F. nc
QUESTION NO: 132
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?
A. dmesg
B. ps
C. top
D. vmstat
QUESTION NO: 133
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?
A. chmod 600 infrastructure.yml
B. chown root: infrastructure.yml
C. chattr -i infrastructure.yml
D. chmod o+w infrastructure.yml
QUESTION NO: 134
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.)
A. chmod g+x accounting
B. chmod 777 taxes
C. chgrp taxes accounting
D. chgrp accounting taxes
E. chmod 774 accounting
F. chmod u+x accounting
QUESTION NO: 135
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?
A. ethtool
B. route
C. netstat
D. portmap
QUESTION NO: 136
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?
A. Change umask value in /etc/profile.
B. Run chmod command to update permissions.
C. Modify directory ownership to ann:ann with chown.
D. Execute chattr command to restore default access.
QUESTION NO: 137
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?
A. echo “- – -” > /sys/class/scsi_host/host0/scan
B. echo ‘ ‘ > /sys/class/scsi_host/host0/scan
C. echo “- – -” > /sys/scsi/scsi_host/host0/scan
D. echo “scan” > /sys/class/scsi_host/host0/scan
QUESTION NO: 138
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?
A. ping -i 5 192.168.1.23
B. ping -c 12 192.168.1.23
C. ping -c 12 -i 300 192.168.1.23
D. ping -c 60 -i 100 192.168.1.23
QUESTION NO: 139
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?
A. mount -o iso9660 /dev/sr0 /mnt
B. mount -o loop -t iso /mnt
C. mount -o loop /tmp/image.iso /mnt
D. mount -o loop /dev/kvm /mnt
QUESTION NO: 140
An administrator is uncomfortable allowing users to log in as root. Which of the following ensures that root logins are disallowed?
A. usermod -L root
B. usermod -G root
C. usermod -B root
D. usermod -U root
QUESTION NO: 141
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?
A. cd/var/lib/rpm; rpm –rebuilddb ; rm -f _db*; yum clean all
B. cd/var/lib/rpm; rpm -qd; rpm –rebuilddb; yum clean all
C. cd/var/lib/rpm; rpm -qa; rm -f _db*; yum clean all
D. cd/var/lib/rpm; rm -f _db*; rpm –rebuilddb; yum clean all
QUESTION NO: 142
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?
A. rm -Rf ~/.*
B. fsck -y /dev/sda1
C. df -i
D. fdisk /dev/sda
QUESTION NO: 143
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?
A. Set BOOTPROTO to BOOTP and USERCTL to yes.
B. Set BOOTPROTO to NONE and ONBOOT to yes.
C. Set USERCTL to yes and ONBOOT to no.
D. Set NETMASK to 255.255.0.0 and ONBOOT to yes.
QUESTION NO: 144
A company wants to provide internal identity verification services for networked devices. Which of the following servers should be installed?
A. SSH
B. VPN
C. CA
D. DHCP
E. DNS
QUESTION NO: 145
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?
A. chmod 000 /var/www/html/old_reports
B. chgrp root /var/www/html/old_reports
C. chown apache /var/www/html/old_reports
D. setenforce apache /var/www/html/old_reports
QUESTION NO: 146
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?
A. Edit the /etc/logrotate.d/cron file to include the line cron.emerg.* /dev/console
B. Edit the /etc/rsyslog.conf file to include the line cron.emerg.* /dev/console
C. Edit the /etc/logrotate.conf file to include the line cron.emerg.* /dev/console
D. Edit the /etc/rsyslog.d/conf file to include the line cron.emerg.* /dev/console
QUESTION NO: 147
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?
A. rsync -aHAX /share/* serverB:/newshare
B. dd if=/share/* of=serverB:/newshare
C. tar -cvf /share/* serverB:/newshare
D. mirror lv /share/* serverB:/newshare
QUESTION NO: 148
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?
A. tail -f /var/log/secure
B. journalctl –u application
C. systemctl application.service
D. watch /var/lib/application/
QUESTION NO: 149
Which of the following is true about Type 2 hypervisors?
A. Type 2 hypervisors run on top of another general purpose OS.
B. Type 2 hypervisors are often called bare-metal or native hypervisors.
C. Type 2 hypervisors offer a performance increase to the guests in comparison to a Type 1 hypervisor.
D. Only Type 2 hypervisors allow direct access to CPU virtualization features.
QUESTION NO: 150
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
QUESTION NO: 151
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
QUESTION NO: 152
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
QUESTION NO: 153
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?
A. VNC
B. rdesktop
C. SPICE
D. XRDP
QUESTION NO: 154
On a UEFI-based system, which of the following invokes GRUB2 from the EFI command prompt?
A. boot//EFI/grub2.efi
B. EFI/grub2.efi
C. /boot/EFI/grub2.efi
D. /grub2.efi
QUESTION NO: 155
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?
A. rmmod -c
B. depmod -r
C. insmod -c
D. modprobe -r
QUESTION NO: 156
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?
A. sed -f TZ=America/New_York
B. cat TZ=America/New_York
C. export TZ=America/New_York
D. printf TZ=America/New_York
QUESTION NO: 157
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?
A. pam_tally2 –user=user –reset
B. passwd -u user -G root
C. usermod -u user -G root
D. chage -1 user=user –reset
QUESTION NO: 158
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?
A. systemctl service on
B. systemctl enable <name>.service
C. systemctl service enable
D. systemctl on <name>.service
QUESTION NO: 159
An administrator is reviewing updates in the master online Git repository and notices a file named .htaccess. The file contains passwords and should only be in the administrator’s local repository, not the online one. Which of the following would prevent this file from appearing online in the future?
A. git commit -m “File Update” -x .htaccess
B. sed -i ‘s/#Preserve Hidden=True/Preserve Hidden=True/g’ .git/config
C. chown nobody:nodoby .htaccess
D. echo “.htaccess” >> .gitignore
QUESTION NO: 160
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.)
A. tcpdump
B. traceroute
C. route
D. iperf
E. ip
F. arp