Question 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 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 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 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 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 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 workWhich 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 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 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 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 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