151-160 Flashcards

1
Q

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

A

C. rsync

E. scp

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

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.

A

C. Create a mount unit and enable it to be started at boot.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

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

A. usermod -s /bin/bash joe

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

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

A. rpm -qf /etc/httpd/conf/httpd.conf

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

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

A

B. mv /home/tmp/tempa /home/tmp/temp

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

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

A

C. firewall-cmd –list-services

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

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

A

D. systemctl daemon-reload

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which of the following commands is used to configure the default permissions for new files?

A. setenforce
B. sudo
C. umask
D. chmod

A

C. umask

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

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

A

D. ssh -i “ABC-key.pem” root@10.0.0.1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

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

A. ip addr add 10.0.6.5/24 dev enpls0f1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly