A developer reported an incident involving the application configuration file /etc/httpd/conf/httpd.conf that is missing from the server. Which of the following identifies the RPM package that installed the configuration file?
A.
rpm -qf /etc/httpd/conf/httpd.conf
B.
rpm -ql /etc/httpd/conf/httpd.conf
C.
rpm —query /etc/httpd/conf/httpd.conf
D.
rpm -q /etc/httpd/conf/httpd.conf
rpm -qf /etc/httpd/conf/httpd.conf
A systems administrator needs to check if the service systemd-resolved.service is running without any errors. Which of the following commands will show this information?
A.
systemctl status systemd-resolved.service
B.
systemctl enable systemd-resolved.service
C.
systemctl mask systemd-resolved.service
D.
systemctl show systemd-resolved.service
systemctl status systemd-resolved.service
Users have been unable to save documents to /home/tmp/temp and have been receiving the following error:
A junior technician checks the locations and sees that /home/tmp/tempa was accidentally created instead of /home/tmp/temp. Which of the following commands should the technician use to fix this issue?
A.
cp /home/tmp/tempa /home/tmp/temp
B.
mv /home/tmp/tempa /home/tmp/temp
C.
cd /temp/tmp/tempa
D.
ls /home/tmp/tempa
mv /home/tmp/tempa /home/tmp/temp
A cloud engineer is asked to copy the file deployment.yaml from a container to the host where the container is running. Which of the following commands can accomplish this task?
A.
docker cp container_id/deployment.yaml deployment.yaml
B.
docker cp container_id:/deployment.yaml deployment.yaml
C.
docker cp deployment.yaml local://deployment.yaml
D.
docker cp container_id/deployment.yaml local://deployment.yaml
docker cp container_id/deployment.yaml deployment.yaml
A Linux administrator rebooted a server. Users then reported some of their files were missing. After doing some troubleshooting, the administrator found one of the filesystems was missing. The filesystem was not listed in /etc/f stab and might have been mounted manually by someone prior to reboot. Which of the following would prevent this issue from reoccurring in the future?
A.
Sync the mount units.
B.
Mount the filesystem manually.
C.
Create a mount unit and enable it to be started at boot.
D.
Remount all the missing filesystems
Create a mount unit and enable it to be started at boot.
A Linux administrator created a new file system. Which of the following files must be updated to ensure the filesystem mounts at boot time?
A.
/etc/sysctl
B.
/etc/filesystems
C.
/etc/fstab
D.
/etc/nfsmount.conf
/etc/fstab
A new Linux systems administrator just generated a pair of SSH keys that should allow connection to the servers. Which of the following commands can be used to copy a key file to remote servers? (Choose two.)
A.
wget
B.
ssh-keygen
C.
ssh-keyscan
D.
ssh-copy-id
E.
ftpd
F.
scp
ssh-copy-id
scp
A systems administrator wants to back up the directory /data and all its contents to /backup/data on a remote server named remote. Which of the following commands will achieve the desired effect?
A.
scp -p /data remote:/backup/data
B.
ssh -i /remote:/backup/ /data
C.
rsync -a /data remote:/backup/
D.
cp -r /data /remote/backup/
rsync -a /data remote:/backup/
A Linux engineer needs to download a ZIP file and wants to set the nice of value to -10 for this new process. Which of the following commands will help to accomplish the task?
A.
$ nice -v -10 wget https://foo.com/installation.zip
B.
$ renice -v -10 wget https://foo.com/installation.2ip
C.
$ renice -10 wget https://foo.com/installation.zip
D.
$ nice -10 wget https://foo.com/installation.zip
$ nice -10 wget https://foo.com/installation.zip
A Linux systems administrator needs to persistently enable IPv4 forwarding in one of the Linux systems. Which of the following commands can be used together to accomplish this task? (Choose two.)
A.
sysctl net.ipv4.ip_forward
B.
sysctl -w net.ipv4.ip_forward=1
C.
echo "net.ipv4.ip_forward=1" >> /etc/sysctl.conf
D.
echo 1 > /proc/sys/net/ipv4/ip_forward
E.
sysctl –p
F.
echo "net.ipv6.conf.all.forwarding=l" >> /etc/sysctl.conf
sysctl -w net.ipv4.ip_forward=1
echo "net.ipv4.ip_forward=1" >> /etc/sysctl.conf
Page 5 out of 37 Pages |
Previous |