151-160 Flashcards
A Linux systems administrator needs to copy files and directories from Server A to Server B. Which of the following commands can be used for this purpose? (Choose two.)
A. rsyslog
B. cp
C. rsync
D. reposync
E. scp
F. ssh
C. rsync
E. scp
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/fstab 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.
C. Create a mount unit and enable it to be started at boot.
Joe, a user, is unable to log in to the Linux system. Given the following output:
grep joe /etc/passwd /etc/shadow
/etc/passwd: joe:x:1001::/home/joe: /bin/nologin
/etc/shadow: joe:$6$3uOw6qWx9876jGhgKJsdFH987634534voj. :18883: 0: 99999: 7: : :
Which of the following commands would resolve the issue?
A. usermod -s /bin/bash joe
B. pam_tally2 -u joe -r
C. passwd -u joe
D. chage -E 90 joe
A. usermod -s /bin/bash joe
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
A. rpm -qf /etc/httpd/conf/httpd.conf
Users have been unable to save documents to /home/tmp/temp and have been receiving the following error:
Path not found -
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
B. mv /home/tmp/tempa /home/tmp/temp
A Linux administrator has logged in to a server for the first time and needs to know which services are allowed through the firewall. Which of the following options will return the results for which the administrator is looking?
A. firewall-cmd –get-services
B. firewall-cmd –check-config
C. firewall-cmd –list-services
D. systemctl status firewalld
C. firewall-cmd –list-services
After installing a new version of a package, a systems administrator notices a new version of the corresponding .service file was installed. In order to use the new version of the .service file, which of the following commands must be issued FIRST?
A. systemctl status
B. systemctl stop
C. systemctl reinstall
D. systemctl daemon-reload
D. systemctl daemon-reload
Which of the following commands is used to configure the default permissions for new files?
A. setenforce
B. sudo
C. umask
D. chmod
C. umask
A Linux administrator needs to connect securely to a remote server in order to install application software. Which of the following commands would allow this connection?
A. scp “ABC-key.pem” root@10.0.0.1
B. sftp root@10.0.0.1
C. telnet 10.0.0.1 80
D. ssh -i “ABC-key.pem” root@10.0.0.1
E. sftp “ABC—key.pem” root@10.0.0.1
D. ssh -i “ABC-key.pem” root@10.0.0.1
In order to copy data from another VLAN, a systems administrator wants to temporarily assign IP address 10.0.6.5/24 to the newly added network interface enpls0f1. Which of the following commands should the administrator run to achieve the goal?
A. ip addr add 10.0.6.5/24 dev enpls0f1
B. echo “IPV4_ADDRESS=10.0.6.5/24” > /etc/sysconfig/network-scripts/ifcfg-enpls0f1
C. ifconfig 10.0.6.5/24 enpsls0f1
D. nmcli conn add ipv4.address=10.0.6.5/24 if name snpls0f1
A. ip addr add 10.0.6.5/24 dev enpls0f1