171-180 Flashcards

1
Q

What is the main objective when using Application Control?

A. To filter out specific content.
B. To assist the firewall blade with handling traffic.
C. To see what users are doing.
D. Ensure security and privacy of information.

A

C. To see what users are doing.

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

As part of the requirements for installing a new application, the swappiness parameter needs to be changed to 0. This change needs to persist across reboots and be applied immediately. A Linux systems administrator is performing this change. Which of the following steps should the administrator complete to accomplish this task?

A. echo “vm.swappiness=0”&raquo_space; /etc/sysctl.conf && sysctl -p
B. echo “vm.swappiness=0”&raquo_space; /proc/meminfo && sysctl -a
C. sysctl -v&raquo_space; /proc/meminfo && echo “vm.swapiness=0”
D. sysctl -h “vm.swapiness=0” && echo /etc/vmswapiness

A

A. echo “vm.swappiness=0”&raquo_space; /etc/sysctl.conf && sysctl -p

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

A systems administrator wants to list all local accounts in which the UID is greater than 500. Which of the following commands will give the correct output?

A. find /etc/passwd -size +500
B. cut -d: -f1 /etc/passwd > 500
C. awk -F: ‘$3 > 500 {print $1}’ /etc/passwd
D. sed ‘/UID/’ /etc/passwd < 500

A

C. awk -F: ‘$3 > 500 {print $1}’ /etc/passwd

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

A systems administrator is tasked with changing the default shell of a system account in order to disable iterative logins. Which of the following is the BEST option for the administrator to use as the new shell?

A. /sbin/nologin
B. /bin/sh
C. /sbin/setenforce
D. /bin/bash

A

A. /sbin/nologin

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

A junior systems administrator recently installed an HBA card in one of the servers that is deployed for a production environment. Which of the following commands can the administrator use to confirm on which server the card was installed?

A. lspci | egrep ‘hba|fibr’
B. lspci | zgrep ‘hba|fibr’
C. lspci | pgrep ‘hba|fibr’
D. lspci | ‘hba|fibr’

A

A. lspci | egrep ‘hba|fibr’

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

A new disk was presented to a server as /dev/sdd. The systems administrator needs to check if a partition table is on that disk. Which of the following commands can show this information?

A. lsscsi
B. fdisk
C. blkid
D. partprobe

A

B. fdisk

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

A systems administrator wants to upgrade /bin/someapp to a new version, but the administrator does not know the package name. Which of the following will show the RPM package name that provides that binary file?

A. rpm -qf /bin/someapp
B. rpm -Vv /bin/someapp
C. rpm -p /bin/someapp
D. rpm -i /bin/someapp

A

A. rpm -qf /bin/someapp

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

A systems administrator is installing various software packages using a package manager. Which of the following commands would the administrator use on the Linux server to install the package?

A. winget
B. softwareupdate
C. yum-config
D. apt

A

D. apt

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

Users are unable to create new files on the company’s FTP server, and an administrator is troubleshooting the issue. The administrator runs the following commands:

df -h /ftpusers/

Filesystem|Size|Used|Avail|Use%|Mounted on

/dev/sda4|150G|40G|109G|26%|/ftpusers

#df -i /ftpusers/

Filesystem|Inodes|Iused|Ifree|Iuse%|Mounted on

/dev/sda4|34567|34567|0|100%|/ftpusers

Which of the following is the cause of the issue based on the output above?

A. The users do not have the correct permissions to create files on the FTP server.
B. The ftpusers filesystem does not have enough space.
C. The inodes is at full capacity and would affect file creation for users.
D. ftpusers is mounted as read only.

A

C. The inodes is at full capacity and would affect file creation for users.

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

You have been asked to parse a log file of logins to determine various information about who is logging in and when.

[comptia@localhost exercise]$ “?”

eric|pts/3|:0|Mon Mar 13 10:52|08:48|(1+12:50)
david|pts/3|:0|Mon Mar 13 10:52|08:48|(1+12:50)
ann|pts/3|:0|Mon Mar 13 10:52|08:48|(1+12:50)
chris|pts/3|:0|Mon Mar 13 10:52|08:48|(1+12:50)
carl|pts/3|:0|Mon Mar 13 10:52|08:48|(1+12:50)
joe|pts/3|:0|Mon Mar 13 10:52|08:48|(1+12:50)
lee|pts/3|:0|Mon Mar 13 10:52|08:48|(1+12:50)

[comptia@localhost exercise]$ “?”

COMPTIA|PTS/1|:0|SUN MAR 12 14:20|09:48|(1+19:28)
CHRIS|PTS/2|:0|SUN MAR 12 14:52|09:48|(1+18:56)
REBOOT|SYSTEM BOOT|3.10.0-693.21.1|SUN MAR 12 11:01|13:26|(2+02:24)
LEE|PTS/2|:0|SUN MAR 12 14:52|09:48|(1+18:56)
COMPTIA|PTS/0|:0|SUN MAR 12 14:14|14:22|(00:07)
ERIC|PTS/2|:0|SUN MAR 12 14:52|09:48|(1+18:56)
COMPTIA|PTS/0|:0|SUN MAR 12 14:14|14:22|(00:07)
REBOOT|SYSTEM BOOT|3.10.0-693.21.1|SUN MAR 12 11:02|13:26|(2+02:23)
DAVID|PTS/2|:0|SUN MAR 12 14:52|09:48|(1+18:56)

[comptia@localhost exercise]$ “?”

ann
carl
chris
comptia
david
eric
joe
lee
reboot

tr “[a-z]” “[A-Z]” <log.txt |grep -i “mar 12”

awk ‘{ print $1 }’ log.txt |uniq

grep -i “mar 12” log.txt | sed ‘s/[a-z]/[A-Z]/g’

grep “Mar 13” log.txt

grep Mar 13 log.txt

awk ‘{ print $1 }’ log.txt | sort |uniq -c

awk ‘{ print toupper($0) }’ log.txt

awk ‘{ print $1 }’ log.txt |sort |uniq

grep “Mar13” log.txt

grep log.txt “Mar 13”

awk ‘{ print $2}’ log.txt | sort |uniq

tr “[A-Z]” “[a-z]” < log.txt | grep -i “mar 12”

A

grep “Mar13” log.txt

tr “[a-z]” “[A-Z]” <log.txt |grep -i “mar 12”

awk ‘{ print $1 }’ log.txt |sort |uniq

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