181-190 Flashcards

1
Q

An administrator started a long-running process in the foreground that needs to continue without interruption. Which of the following keystrokes should the administrator use to continue running the process in the background?

A. bg
B. bg
C. jobs -1
D. bg &

A

A. bg

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

A Linux administrator has physically added a new RAID adapter to a system. Which of the following commands should the Linux administrator run to confirm that the device has been recognized? (Choose two.)

A. rmmod
B. ls -ll /etc
C. lshw -class disk
D. pvdisplay
E. rmdir /dev
F. dmesg

A

C. lshw -class disk

F. dmesg

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

Based on the given command:

find /home/user1 -type f -name “*.txt” -size +100M

Which of the following will the command accomplish?

A. It finds all the files ending with .txt with a size less than 100MB in /home/user1 directory.
B. It finds all the files ending with .txt with a size of 100MB in /home/user1 directory.
C. It finds all the directories with .txt files with a size of 100MB in /home folder.
D. It finds all the files ending with .txt with a size of over 100MB in /home/user1 directory.

A

D. It finds all the files ending with .txt with a size of over 100MB in /home/user1 directory.

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

While inspecting a recently compromised Linux system, the administrator identified a number of processes that should not have been running:

PID|USER|PR|NI|VIRT|RES|SHR|S|%CPU|%MEM|TIME+|COMMAND

5545|joe|30|-10|5465|56465|8254|R|0.5|1.5|00:35.3|upload.sh

2567|joe|30|-10|6433|75544|9453|R|0.7|1.8|00:25.1|upload_passwd.sh

8634|joe|30|-10|3584|74537|6435|R|0.3|1.1|00:17.6|uploadpw.sh

4846|joe|30|-10|6426|63234|9683|R|0.8|1.9|00:22.2|upload_shadow.sh

Which of the following commands should the administrator use to terminate all of the identified processes?

A. pkill -9 -f “upload.sh”
B. kill -9 “upload
.sh”
C. killall -9 “upload.sh”
D. skill -9 “upload
.sh”

A

A. pkill -9 -f “upload*.sh”

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

A senior Linux administrator has created several scripts that will be used to install common system applications. These scripts are published to a repository to share with the systems team. A junior Linux administrator needs to retrieve the scripts and make them available on a local workstation. Which of the following Git commands should the junior Linux administrator use to accomplish this task?

A. fetch
B. checkout
C. clone
D. branch

A

C. clone

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

Users are reporting that writes on a system configured with SSD drives have been taking longer than expected, but reads do not seem to be affected. A Linux systems administrator is investigating this issue and working on a solution. Which of the following should the administrator do to help solve the issue?

A. Run the corresponding command to trim the SSD drives.
B. Use fsck on the filesystem hosted on the SSD drives.
C. Migrate to high-density SSD drives for increased performance.
D. Reduce the amount of files on the SSD drives.

A

A. Run the corresponding command to trim the SSD drives.

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

A Linux engineer needs to block an incoming connection from the IP address 2.2.2.2 to a secure shell server and ensure the originating IP address receives a response that a firewall is blocking the connection. Which of the following commands can be used to accomplish this task?

A. iptables -A INPUT -p tcp –dport ssh -s 2.2.2.2 -j DROP
B. iptables -A INPUT -p tcp –dport ssh -s 2.2.2.2 -j RETURN
C. iptables -A INPUT -p tcp –dport ssh -s 2.2.2.2 -j REJECT
D. iptables -A INPUT -p tcp –dport ssh -s 2.2.2.2 -j QUEUE

A

C. iptables -A INPUT -p tcp –dport ssh -s 2.2.2.2 -j REJECT

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

A systems administrator detected corruption in the /data file system. Given the following output:

root@localhost ~]# lsblk -f

NAME|FSTYPE|LABEL/UUID|MOUNTPOINT

sda
|-sda1|vfat|4E7D-9539|/boot/efi

|-sda2|xfs|98442caf-473d-448e-aee5-561a82297314|/boot

|-sda3|swap|19f064e4-7c51-4b02-8219-99362a3c45ec|[SWAP]

|-sda4|xfs|25d96ada-4289-4def-9202-6ab11affbed3|/

|-sda5|xfs|61435ee9-855d-4de9-9c67-39aeb7f3edb5|/home

sdc

|-sdc1|ext4|92435ff9-745e-4fg9-9c67-39aeb7f3exf5|/data

Which of the following commands can the administrator use to BEST address this issue?

A.
umount /data
mkfs.xfs /dev/sdc1
mount /data

B.
umount /data
xfs_repair /dev/sdc1
mount /data

C.
umount /data
fsck /dev/sdc1
mount /data

D.
umount /data
pvs /dev/sdc1
mount /data

A

C.
umount /data
fsck /dev/sdc1
mount /data

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

A user reported issues when trying to log into a Linux server. The following outputs were received:

Output1:

user1: $6SQWSeda12DeafLO09uyvbn12/fHYwslLm45NMCnbashU: 18885: 0: 99999: 7:::

Output2:

user1:x: 39981:501:user1 account: /home/user1: /bin/bash

Output3:

AllowGroups wheel admin desktop user

Output4:

lp:x:7:daemon
desktouser:x:502
user:x:501
postfix:x:32

Given the outputs above, which of the following is the reason the user is unable to log in to the server?

A. User1 needs to set a long password.
B. User1 is in the incorrect group.
C. The user1 shell assignment is incorrect.
D. The user1 password is expired.

A

B. User1 is in the incorrect group.

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

A junior administrator updated the PostgreSQL service unit file per the database administrator’s recommendation. The service has been restarted, but changes have not been applied. Which of the following should the administrator run for the changes to take effect?

A. systemctl get-default
B. systemctl daemon-reload
C. systemctl enable postgresql
D. systemctl mask postgresql

A

B. systemctl daemon-reload

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