Final Exam Study Notes

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/249

flashcard set

Earn XP

Description and Tags

Quizzes 1-14

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

250 Terms

1
New cards

Which of the following commands can be used to determine the round trip time that a packet takes to traverse a network connection?

ping

2
New cards

Which of the following commands will allow the root user to switch to another user account without having to enter that user account’s password?

su

3
New cards

Which of the following commands can you use to list users who have been locked out by pam_faillock.so?

faillock

4
New cards

Which of the following packages should be installed in order to integrate certain authentication functions with Microsoft’s Active Directory?

Kerberos

5
New cards

Which of the following files does a TCP wrapper check before starting a network daemon?

/etc/hosts.allow and /etc/hosts.deny

6
New cards

Which of the following commands can be used for the command line version of a popular GUI-based program that is used to examine network traffic passing to and from a network interface?

tshark

7
New cards

Which of the following are examples of multifactor authentication?

Password and fingerprint reader

8
New cards

Which of the following utilities will allow you to view information about virtual memory usage on a Linux system?

vmstat

9
New cards

Which of the following commands allows a standard user to execute a single command as root without actually switching to the root account?

sudo

10
New cards

If a Linux system is running as a virtual machine, it may be using a bridge for the virtual network adapter within the virtual machine to the physical network adapter. Which of the following commands can be used to view or modify the bridge configuration used by the Linux kernel for your network adapter?

brctl

11
New cards

When looking at the password-auth file on a Fedora system, you notice part of the syntax that says dcredit=3. What is the significance of this part of the configuration?

Users must use at least 3 characters as numbers in their passwords.

12
New cards

Which of the following commands can be used to view the quota for a user?

edquota -u jsmith

13
New cards

Where does the sudo command check to determine a user’s privileges when they attempt to run the sudo command?

/etc/sudoers

14
New cards

Which of the following options for the gpg command will attempt to use the gpg agent and if it cannot will ask for a passphrase?

--use-agent

15
New cards

Which of the following is not a valid Apparmor command?

aa-trust

16
New cards

When logging into a system, you are prompted to type in a code from a small token that you carry around with you. The code on this token constantly changes. What type of technology has been implemented?

OTP

17
New cards

Which of the following utilities can be used by a system administrator to determine which services are responding to network requests?

nmap

18
New cards

Which of the following files contains the encrypted passwords for users on a modern Linux system by default?

/etc/shadow

19
New cards

In which of the following zones might a system administrator put the web server hosting the company’s publicly accessible website?

DMZ

20
New cards

If you suspect that you have bad blocks on a filesystem, which of the following commands can be used to try and repair the filesystem?

fsck

21
New cards

Which of the following commands will prompt to convert an MBR partition to GPT, thus destroying all existing MBR partitions on a disk?

gdisk

22
New cards

Which of the following is required as a separate partition in order to use LVM?

/boot

23
New cards

Which of the following commands can be used to scan a filesystem for disk usage, create, check, and repair quota files?

quotacheck

24
New cards

If the mkfs command is executed to create a filesystem and only the block device name is specified, which of the following filesystems will be created?

ext2

25
New cards

Clint has run the command parted /dev/sdb and wants to display a list of the existing partitions that exist on that drive. Which of the following commands can he use to display the existing partitions?

print

26
New cards

John has been using the cdrom on his computer that is running the Linux operating system. He pushes the eject button on the front of the drive, but it doesn’t eject the disk. Which of the following commands should he run? (Choose all that apply.)

  • A. eject /media/cdrom

  • B. unmount /media/cdrom

  • C. umount /media/cdrom

  • D. detach /media/cdrom

A & C

27
New cards

Archie wants to optimize an XFS filesystem and minimize the chance of future corruption. Which of the following commands will compact or otherwise improve the layout of the contiguous blocks of file data for an XFS filesystem?

xfs_fsr

28
New cards

Which of the following commands can be used to create and activate a swap partition on a Linux system? (Each answer represents part of the whole.)

1. mkswap /dev/sda6 | 2. swapon /dev/sda6

29
New cards

Aria has modified the hard disk that hosts the operating system by using the fdisk command. The fdisk command indicates that the new partition information must be manually reloaded. Which of the following should she do next? (Choose two. Either answer is independently correct.)

  • A. Reboot the system

  • B. Run the cfdisk program

  • C. Run the parted command

  • D. Run the partprobe command

A & D

30
New cards

Elijah is done working with an external USB hard drive and wants to properly disconnect it. Which of the following commands should he use before unplugging the USB cable?

umount

31
New cards

Which of the following can be used to mount a filesystem? (Choose all that apply.)

All of these are correct

32
New cards

Jackson wants to automatically mount a secondary internal hard drive when his Linux workstation boots up. In which of the following files should he configure an entry for the partition on the drive that he wants to mount?

/etc/fstab

33
New cards

Which of the following commands will display a summarization of quotas for a filesystem?

repquota

34
New cards

Which of the following commands can be used to show the block devices, including their major and minor numbers, on a system which are located in the /sys/block directory?

lsblk

35
New cards

The quotas for certain users can be edited by using which command?

edquota

36
New cards

Which of these commands will set the following permissions on file1.txt?

User = Read, Write, Execute

Group = Read, Execute

Others = Read

  • A. chmod file1.txt 754

  • B. chmod o=rwx,g=rx,u=r file1.txt

  • C. chmod u=rwx, g=rx, u=r file1.txt

  • D. chmod 754 file1.txt

C & D

37
New cards

What would be the result of running the command chown :root file1.txt

This would set the group ownership of file1 to root.

38
New cards

Jan needs to set permissions on a file so that the owner has read, write, and execute permissions. The group should have read permissions only, and everyone else should have no access. Which of the following parameters, when used with the chmod command, would set the permissions described?

740

39
New cards

Which of the following umask settings will result in new files receiving the default permissions -rw-------?

0177

40
New cards

Which of the following commands can be used to update the last modified timestamp on a file, or if the file specified does not exist will create the file?

touch file.txt

41
New cards

Which of the following commands will display all files and directories within the /var/log directory or its subdirectories which are owned by the root user?

find /var/log -user root

42
New cards

Which of the following commands will create a symbolic link named foo.txt to an original file named bar.txt 

ln -s bar.txt foo.txt

43
New cards

If a hard link is created to a file and then the original file is deleted, which of the following is true?

The original file will be removed while the hard link remains usable to access the contents of the file.

44
New cards

Lynn runs the locate command and the results include many files from a directory that she doesn’t want to include in her search. Which of the following files could Lynn modify so that the locate command no longer includes those results?

/etc/updatedb.conf

45
New cards

The Filesystem Hierarchy Standard specifies what directory as the root user’s home directory?

/root

46
New cards

Jean installs a distribution of Linux on a workstation and attempts to run the locate command to find a certain file. Instead of returning the results she expected, an error message is displayed that it cannot find the mlocate.db file in its default location. Which of the following commands should Jean run in an attempt to resolve this problem?

updatedb

47
New cards

What is the complete path and filename for the database that is used by the locate and mlocate commands?

/var/lib/mlocate/mlocate.db

48
New cards

Mindy wants to create a new subdirectory at ~/2019projects/projectx/projectplans to start storing the initial project plans for projectx. However, this is the first project she has worked on in 2019 and the 2019projects directory does not exist yet. Which of the following commands will create the higher level directories if they do not already exist?

mkdir -p ~/2019projects/project/projectplans

49
New cards

Which of the following commands can be used to recursively search through the directory tree in search of a file that meets a set of given criteria instead of using an indexed database?

find

50
New cards

Nicholas wants to verify whether a file is a hard link to a file within the same directory. Which of the following commands could he use to see information that would be helpful to make this determination?

ls -i

51
New cards

Which of the following are valid permissions for a directory where the command chmod 1777 has been used to set the permissions on it?

drwxrwxrwt

52
New cards

Which of the following options will change the ownership of files and directories recursively within a directory? (Choose all that apply.)

  • A. --follow

  • B. --recursive

  • C. -r

  • D. -R

B & D

53
New cards

Which of the following commands will delete a directory and all of the files contained within it?

rm -rf olddir

54
New cards

Mike has changed directory into one subdirectory after the next and has lost track of where he’s at in the directory tree. Which of the following commands can he use to tell him the full path to the current subdirectory he is in?

pwd

55
New cards

Kate wants to compare two text files to identify what might have been changed from one version to another. Which of the following commands can she use to do this?

diff document1.txt document2.txt

56
New cards

Select the regular expression metacharacter that matches 0 or more occurrences of the previous character.

*

57
New cards

When using the vi text editor, which of the following keys, when in command mode, will move to the last line in the document?

G

58
New cards

What commands can help you identify different types of files? (Choose 2)

  • A. cat

  • B. file

  • C. touch

  • D. stat

B & D

59
New cards

Which of the following commands will not interpret regular expressions, which translates into faster results being returned? (Choose all that apply.)

  • A. grep -F

  • B. egrep

  • C. grep

  • D. fgrep

A & D

60
New cards

At the vi command mode prompt, what key combination will force a quit from the vi editor without saving changes?

:q!

61
New cards

Select the command that can be used to provide a long listing for each file in a directory:

ls -l

62
New cards

To display a text file in reverse order, what command should be used?

tac

63
New cards

When issuing the ls -F command, what special character indicates a linked file?

@

64
New cards

Garrett wants to search through a csv file to find all rows that have either the name John or Bob in them and display them out to the terminal. Which of the following commands could Garrett use to perform this search?

grep -E “(John|Bob)” salesemployees.csv

65
New cards

If enough unique letters of a directory name have been typed, what key can be pressed to activate the BASH shell's completion feature?

Tab

66
New cards

What command can be issued to confirm which directory you are in at a command line prompt?

pwd

67
New cards

Jo has received a text file which contains multiple instances of his name spelled correctly as well as multiple instances spelled as Joe. Which of the following commands would search a text file for any occurrences of either spelling and display them out to the terminal? (Choose three.)

  • A. grep “Joe*” document1.txt

  • B. grep -E “Joe?” document1.txt

  • C. grep -E “Joe*” document1.txt

  • D. grep “Joe?” document1.txt

A, B & C

68
New cards

When using the vi text editor, which of the following keys, when in command mode, will change to insert mode and place the cursor at the end of the current line?

A

69
New cards

The Linux kernel exists as a file named:

vmlinuz

70
New cards

After logging into a terminal, a user will receive an interface known as which option?

Shell

71
New cards

Under the root directory in Linux, which directory contains system commands and utilities?

/usr

72
New cards

What metacharacter indicates background command execution?

&

73
New cards

Sandra needs to obtain the latest image of Fedora so that she can install it as a virtual machine on her Windows workstation. Which of the following file formats is Sandra likely to find available for download from Fedora’s website in order to allow her to use the file as the source for booting and installing Linux as a VM?

.iso

74
New cards

When using command-line terminal, specific letters that start with a dash ("-") and appear after command names are considered to be:

Options

75
New cards

Dustin runs a command at the command line trying to find out what kernel version the system is running. However, it doesn’t give him the information he needs. He knows there is an option that can be used to display the kernel version. How can he find out which option to use?

man uname

76
New cards

After a shell is no longer needed, what command can be given to exit the shell?

exit

77
New cards

What directory under / contains the log files and spools for a Linux system?

 /var

78
New cards

A calendar for the current month can be shown on the command line by issuing which command?

cal

79
New cards

What metacharacter can be used to issue two commands to be run in consecutive order, without piping or redirecting output?

;

80
New cards

Select the utility below that will start and perform a thorough check of RAM for hardware errors when run.

memtest86

81
New cards

Wayne is using the command line and is in his home directory. Which of the following will display a list of all files and their sizes from his home directory? (Choose two.)

  • A. ls -ax

  • B. ls -ax ~

  • C. ls -al /home/wayne

  • D. ls -al ~

C & D

82
New cards

Which Linux command can be utilized to display your current login name?

whoami

83
New cards

Which of the following are true of the echo command?

All of the other options are true.

84
New cards
85
New cards

Which of the following SQL statements can be used to delete a table from a database?

DROP TABLE table_name;

86
New cards

After modifying the /etc/aliases file, what command must be run in order to rebuild the aliases database?

newaliases

87
New cards

Which type of CM software can connect to inventory members via SSH to perform configuration management activities?

agentless

88
New cards

Which of the following types of joins will return a record from two intersecting tables only if there is a match on the joining field from both tables?

INNER JOIN

89
New cards

What command can be used to view and modify the date and time within the BIOS?

hwclock

90
New cards

What FTP command runs a shell on the local computer?

!

91
New cards

Which of the following is a valid SQL statement for adding a new row of data to a SQL database table?

INSERT INTO users (firstname, lastname) values (‘George’, ‘Washington’);

92
New cards

Which of the following is used on modern Linux distributions that reads YAML configuration files to add apps, modify existing configuration settings, or perform administrative tasks at boot time?

cloud-init

93
New cards

When working with Sendmail, what command can be used to test SMTP support?

HELO

94
New cards

What ftp command uploads the filename from the current directory on the local computer to the current directory on the remote computer and allows the use of wildcard metacharacters to specify the filename?

mput filename

95
New cards

Which of the following commands can be used to display any email messages awaiting delivery alongside the reason that they were not delivered?

mailq

96
New cards

Which of the following statements should be used at the end of a SQL statement where an aggregate function such as SUM or COUNT is used?

GROUP BY 

97
New cards

Where is the default document root directory for the Apache Web server?

/var/www/html

98
New cards

Which of the following types of CM software only requires that you specify the attributes that the inventory members must have within a configuration file, not the individual procedures that must be executed on them?

declarative configuration 

99
New cards

What kind of servers resolve fully qualified domain names to IP addresses for a certain namespace on the Internet?

DNS

100
New cards

Which of the following accessibility features simulates simultaneous key presses when two keys are pressed in sequence?

Sticky Keys