Lesson 8 Quiz Flashcards

1
Q

Select ALL statements that are TRUE about the mount command.

a) Use the mount command by itself to display the mounted filesystems.
b) Use the mount command to umount existing filesystems.
c) Use the mount command to mount new filesystems.
d) Use the mount command to display a list of users who are mounted on the system.

A

a) Use the mount command by itself to display the mounted filesystems.
c) Use the mount command to mount new filesystems.

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

Match the character to the Linux file type
Ordinary File a) -
Block Device File b) d
Symbollic Link c) l (letter L)
FIFO (also called a named pipe) d) b
Directory e) c
Character Special File f) s
Socket g) p

A

Ordinary File a) -
Block Device File d) b
Symbollic Link c) l (letter L)
FIFO (also called a named pipe) g) p
Directory b) d
Character Special File e) c
Socket f) s

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

You execute the following command:

find /etc > /dev/null 2>&1

What output do you see on the screen?

a) No output is shown.
b) A list of files with permissions in /etc
c) A list of files in /etc
d) A list of normal files in /etc

A

a) No output is shown.

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

From the list below, select TWO files and/or directories that are used for systemwide interactive shell initialization scripts.

a) /etc/profile.d
b) ~/.bash_profile
c) ~/.bashrc
d) /etc/profile

A

a) /etc/profile.d

d) /etc/profile

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

Select ALL that are Linux Filesystems.

a) ext2
b) ext4
c) ext3
d) proc

A

a) ext2
b) ext4
c) ext3
d) proc

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

This contains an individual user’s login shell initialization script.

a) /var/usrs/bash_login
b) ~/loginscript
c) /etc/bash_profile
d) ~/.bash_profile

A

d) ~/.bash_profile

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

Select ALL that are TRUE as they relate to /etc/inittab.

a) /etc/inittab is known as the Initialization Table.
b) /etc/inittab is the initialization troubleshooting table
c) On some Linux distros, e.g. RHEL, the /etc/initab sets the default run level.
d) /etc/inittab is a symbolic link to /var/log/inittab

A

a) /etc/inittab is known as the Initialization Table.

c) On some Linux distros, e.g. RHEL, the /etc/initab sets the default run level.

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

Hard Links are different file names that point to different inodes.

True
False

A

False

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

This is a pseudo filesystem for reading/writing info direct from/to the kernel.

a) /kernel
b) /dev/kernel
c) /proc
d) /etc/proc

A

c) /proc

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

This directory contains preallocated disk blocks for use with fsck to store pointers to missing files

a) lost+found
b) lost
c) Answer not listed
d) found

A

a) lost+found

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

Select ALL statements that are TRUE about Linux swap.

a) Swap is a command that swaps processes from running as high priority to low priority.
b) Swap is used by the virtual memory subsystem.
c) When RAM runs low, the kernel moves memory to swap space.
d) Swap allows you to swap out hard disks without shutting down the system.

A

b) Swap is used by the virtual memory subsystem.

c) When RAM runs low, the kernel moves memory to swap space.

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

A ____ is an internal data structure stored on disk that describes info about the file.

a) symbolic link
b) hard link
c) block
d) inode

A

d) inode

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

This is the location of system log files.

a) /proc/log
b) /dev/log
c) Answer not given.
d) /etc/log

A

c) Answer not given.

/var/log is where log files are located

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

Contains an individual user’s interactive non-login shell script, i.e., this executes each time a new shell is spawned.

a) Answer not listed.
b) /var/usr/bash_profile
c) ~/.bashrc
d) /etc/bashrc

A

c) ~/.bashrc

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

Which of the following statements are TRUE as they relate to /etc/nsswitch.conf?

a) /etc/nsswitch.conf is the Next Step Switch configuration file.
b) /etc/nsswitch.conf has a listing of IP addresses mapped to host names.
c) /etc/nsswitch.conf specifies whether a system uses NIS, DNS, local files, or some combination as the source of certain information.
d) /etc/nsswitch.conf is the Network Service Switch configuration file.

A

c) /etc/nsswitch.conf specifies whether a system uses NIS, DNS, local files, or some combination as the source of certain information.
d) /etc/nsswitch.conf is the Network Service Switch configuration file.

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

This is the first hard disk in your system, partition 1.

a) /dev/sda
b) Answer not given
c) /dev/sda1
d) /dev/sda0

A

c) /dev/sda1

17
Q

Select TWO files that are used by TCP wrapper programs for access control.

a) /etc/nsswitch.conf
b) /etc/hosts
c) /etc/hosts.allow
d) /etc/hosts.deny

A

c) /etc/hosts.allow

d) /etc/hosts.deny

18
Q

The /etc/pam.d is the Pluggable Authentication Modules Directory.
True
False

A

True

19
Q

This file contains encrypted user passwords.

a) /var/passwords
b) /secure/encrypted/passwords
c) /etc/shadow
d) /etc/passwd

A

c) /etc/shadow

20
Q

This file contains the local user names (e.g. root, student) but does not contain the passwords.

a) /etc/nsswitch.conf
b) /etc/shadow
c) /var/passwords
d) /etc/passwd

A

d) /etc/passwd

21
Q

Select ALL the statements that are TRUE about /etc/fstab.

a) /etc/fstab is also known as the filesystem mount table
b) /etc/fstab is a file added by SELinux to improve filesystem security
c) /etc/fstab is also known as the file security table
d) /etc/fstab contains a list of mountable devices

A

a) /etc/fstab is also known as the filesystem mount table

d) /etc/fstab contains a list of mountable devices

22
Q

Symbolic Links are filenames that contain a pointer to another filename.

True
False

A

True

23
Q

What is the purpose of /etc/motd?

a) The /etc/motd file contains the memory troubleshooting messages.
b) Answer not listed.
c) The /etc/motd file is a symbolic link to /var/log/motd and contains memory test diagnostic results.
d) The /etc/motd file contains the message of the day that is displayed to the user from a text-mode console.

A

d) The /etc/motd file contains the message of the day that is displayed to the user from a text-mode console.

24
Q

Select ALL the following that are TRUE statements about /etc/hosts

a) /etc/hosts stores names and IP addresses
b) /etc/hosts typicall has at least 1 entry for localhost, i.e., 127.0.0.1
c) /etc/hosts is used by DNS to lookup names and IP addresses
d) /etc/hosts is a log of hosts your machine has accessed

A

a) /etc/hosts stores names and IP addresses

b) /etc/hosts typicall has at least 1 entry for localhost, i.e., 127.0.0.1

25
Q

Related to Major and Minor Numbers, select all statements below that are TRUE.

a) A minor device number points to a particular piece of hardware controlled by the device major number.
b) A major device number points to a particular piece of hardware controlled by the device major number.
c) A major device number points to a driver in the kernel that manages the device.
d) A minor device number points to a driver in the kernel that manages the device.

A

a) A minor device number points to a particular piece of hardware controlled by the device major number.
c) A major device number points to a driver in the kernel that manages the device.