+ All Categories
Home > Documents > Linux Final

Linux Final

Date post: 31-Dec-2015
Category:
Upload: ryleb89507192887
View: 310 times
Download: 0 times
Share this document with a friend
Description:
Linux final
Popular Tags:
46
Chapter 3 Question 1 4 out of 4 points A Linux command used to search for and deisplay text characters in a binary file is called ______________. Selected Answer: strings Answers: binarysearch bintext strings searchbin Question 2 4 out of 4 points Linux uses a logical directory tree to organize files into different folders. Selected Answer: True Answers: True False Question 3 4 out of 4 points To view a list of files and their type, use the ____ switch to the ls command. Selected Answer: -F Answers: -T -L -F -l Question 4 4 out of 4 points If you type enough unique letters of a directory and press ____ key, the BASH shell will find the intended file or
Transcript
Page 1: Linux Final

Chapter 3

Question 1

4 out of 4 points

A Linux command used to search for and deisplay text characters in a binary file is called ______________.

Selected Answer:

strings

Answers: binarysearch

bintext

strings

searchbin

Question 2

4 out of 4 points

Linux uses a logical directory tree to organize files into different folders.

Selected Answer: True

Answers: True

False

Question 3

4 out of 4 points

To view a list of files and their type, use the ____ switch to the ls command.

Selected Answer: -F

Answers: -T

-L

-F

-l

Question 4

4 out of 4 points

If you type enough unique letters of a directory and press ____ key, the BASH shell will find the intended file or

Page 2: Linux Final

directory being specified and fill in the appropriate information.

Selected Answer: Tab

Answers: Alt

Tab

Ctrl

Esc

Question 5

0 out of 4 points

Text files are the most common file type whose contents can be viewed by several command such as ... Select 3

Selected Answers:

ls

cd

more

Answers: ls

pwd

cat

cd

tail

more

Question 6

4 out of 4 points

What is a relative path?

Selected Answer:

A file or directory relative to your current directory

Answers: Another name for an absolute path.

Page 3: Linux Final

A file or directory relative to your current directory

A file or directory located in the / directory.

A file or directory containing your relatives contact information.

Question 7

4 out of 4 points

When you first open the vi editor, you are placed in edit mode.

Selected Answer: False

Answers: True

False

Question 8

4 out of 4 points

The ____ regular expression metacharacter matches 0 or more occurrences of the previous character.

Selected Answer: *

Answers: *

?

+

^

Question 9

4 out of 4 points

The ____ command will confirm the system directory that you are currently in.

Selected Answer: pwd

Answers: dir

pwd

whereami

ld

Question 10

Page 4: Linux Final

0 out of 4 points

With regards to viewing files with the 'ls' command a '*' indicates what kind of file?

Selected Answer:

A 'text' file

Answers: A 'text' file

A 'system' file

A 'device' file

A 'executable' file

Question 11

4 out of 4 points

When working with files, the special metacharacter “..” specifies the current directory.

Selected Answer: False

Answers: True

False

Question 12

4 out of 4 points

To display the contents of a file called data, use the command ____.

Selected Answer: cat data

Answers: disp data

ls data

ls -l data

cat data

Question 13

4 out of 4 points

Move upward one directory using the 'cd' command with the argument of _____.

Selected Answer:

..

Page 5: Linux Final

Answers:

..

!

~

/

Question 14

0 out of 4 points

An absolute path on the Linux filesystem always begins with a ___/

Selected Answer:

\

Answers: \

/

*

@

Question 15

4 out of 4 points

Linux like Windows uses a similiar directory structure with drive letters starting at C:

Selected Answer: False

Answers: True

False

Question 16

4 out of 4 points

'less' can do more than 'more'

Selected Answer: True

Answers: True

False

Question 17

4 out of 4 points

Page 6: Linux Final

The most common way to search for information using regular expressions is the grep command.

Selected Answer: True

Answers: True

False

Question 18

3.11111 out of 4 points

Match each correct item with the statement below.

Question Answers Selected

Match

A 'hidden' file on the Linux filesystem begins with a _________. A.

period

A.

period

A file that represents a device on the system, such as a hard disk or serial port. H.

special

device file

H.

special

device file

The ___ symbol indicates a 'Linked' file I.

@

I.

@

A file that allows a process on another computer to write to a file on the local

computer while another process reads from that file. F.

socket file

F.

socket file

Displays the first ten lines of a text file. G.

head

command

G.

head

command

The directory that is one level closer to the root directory relative to your current

directory is called the ___________________. C.

parent

directory

C.

parent

directory

Identifies a channel that passes information from one process in memory to

another, and in some cases can be mediated by files on the hard drive. D.

named pipe

D.

named pipe

Displays lines of text that match extended regular expressions. E.

egrep

command

B.

tac command

Displays a file in reverse order. B.

tac command

E.

egrep

command

Page 7: Linux Final

Question 19

4 out of 4 points

In the 'vi' editor you can enter 'insert' mode by pressing _____ and enter 'command' mode by pressing _____.

ESC

i

Answers: CTRL

ALT

ESC

Q

i

:

Question 20

4 out of 4 points

Using wildcard metacharacters, how can one indicate a number is anything but 1, 2, 3, or 4?

Selected Answer:

[!1-4]

Answers: !1-4

[!1-4]

[1234]

[1,2,3,4]

Question 21

0 out of 4 points

The ____ editor is functionally analogous to the Windows Wordpad and Notepad editors.

Selected Answer: vi

Answers: XEmacs

Page 8: Linux Final

vi

Emacs

gedit

Question 22

4 out of 4 points

Quit from 'vi' without saving changes by pressing ______.

Selected Answer:

:q!

Answers: q

:q

:!

:q!

Question 23

0 out of 4 points

In Linux, the root directory is represented by a \ character.

Selected Answer: True

Answers: True

False

Question 24

4 out of 4 points

The ____ command displays the last five lines of a text file.

Selected Answer: tail -5

Answers: end -5

head -5

stop -5

tail -5

Question 25

Page 9: Linux Final

4 out of 4 points

The ____ command can be used to provide a long listing for each file in a certain directory.

Selected Answer: ls -l

Answers: ls -T

ls -L

ls -F

ls -l

Chapter 4

Question 1

4 out of 4 points

When using the chmod command for a specific file, the ____ argument would add read permission and remove

write permission for the group permissions.

Selected Answer: g+r-w

Answers: u+r+w

g-r+w

g+r-w

o+r-w

Question 2

4 out of 4 points

The PATH variable lists directories that are searched for executable files if a relative or absolute pathname was

not specified when executing a command on the command line.

Selected Answer: True

Answers: True

False

Question 3

4 out of 4 points

In the FHS, the ____ directory contains the Linux kernel and files used by the boot loader.

Selected Answer: /boot

Page 10: Linux Final

Answers: /load

/bin

/boot

/mnt

Question 4

4 out of 4 points

The ____ command takes a list of arguments specifying the absolute or relative pathnames of files to remove.

Selected Answer: rm

Answers: del

rm

remove

delete

Question 5

4 out of 4 points

The SGID allows regular users to execute a binary compiled program and become a member of the group that is

attached to the file.

Selected Answer: True

Answers: True

False

Question 6

4 out of 4 points

The ____ section of a filesystem is the section that contains information about the filesystem in general.

Selected Answer: superblock

Answers: inode table

inode

data blocks

superblock

Question 7

Page 11: Linux Final

4 out of 4 points

Copying a file can be accomplished using the ____ command.

Selected Answer: cp

Answers: copy

mv

cp

cpy

Question 8

0 out of 4 points

To set all of the special permissions on a certain file or directory, you can use the command ____, where name is

the name of the file or directory.

Selected Answer: chmod 777 name

Answers: chmod 777 name

chmod 7777 name

chmod 6666 name

chmod 0000 name

Question 9

4 out of 4 points

The execute permission for a file allows a user the ability to execute the file in memory (if it is a program file or a

script).

Selected Answer: True

Answers: True

False

Question 10

4 out of 4 points

In a file’s mode, if a permission is unavailable, a(n) ____ character replaces its position in the mode.

Selected Answer: -

Answers: *

+

Page 12: Linux Final

?

-

Question 11

4 out of 4 points

The section of an inode that stores permissions is called the ____ of the file.

Selected Answer: mode

Answers: tail

head

mode

accessor

Question 12

4 out of 4 points

Symbolic links share the same inode and inode number with hard links?

Selected Answer: False

Answers: True

False

Question 13

4 out of 4 points

You can see the contents of a certain variable in memory by using the ____ metacharacter with the echo

command.

Selected Answer: $

Answers: $

*

&

#

Question 14

0 out of 4 points

Page 13: Linux Final

The fastest method to search for files in the Linux directory tree is to use the ____ command.

Selected Answer: find

Answers: search

id

find

locate

Question 15

4 out of 4 points

To create a hard link, you must use the ____ command.

Selected Answer: ln

Answers: ln

link

lnk

lk

Question 16

0 out of 4 points

In the FHS, the ____ directory contains most system commands and utilities.

Selected Answer: /bin

Answers: /usr

/root

/bin

/home

Question 17

4 out of 4 points

To move files, you can use the mv command.

Selected Answer: True

Answers: True

False

Page 14: Linux Final

Question 18

4 out of 4 points

When using the chmod command, the mode rwx can be represented by the number ____.

Selected Answer: 7

Answers: 0

1

7

8

Question 19

0 out of 4 points

The ____ metacharacter can also be used to refer to the current user's home directory.

Selected Answer: @

Answers: ~

@

&

#

Question 20

4 out of 4 points

In the FHS, the ____ directory is the root user’s home directory.

Selected Answer: /root

Answers: /bin

/home

/boot

/root

Question 21

4 out of 4 points

Page 15: Linux Final

If a user has ____ permission for a file, they can open, read, and edit the contents of a file.

Selected Answer: write

Answers: write

execute

read

alter

Question 22

4 out of 4 points

You can use wildcard metacharacters with the find command.

Selected Answer: True

Answers: True

False

Question 23

0 out of 4 points

Permissions are additive.

Selected Answer: True

Answers: True

False

Question 24

4 out of 4 points

Match each term with the correct statement below.

Question Answers Selected

Match

Command used to change the permissions for a certain file or directory. E.

chmod

E.

chmod

Command used to view your current user name. H.

whoami

H.

whoami

Command used to view your group memberships and primary group. B.

groups

B.

groups

Page 16: Linux Final

Command used to change the group owner of a file or directory. A.

chgrp

A.

chgrp

Command used to test network connectivity. G.

ping

G.

ping

Command used to change the ownership of a file or directory. F.

chown

F.

chown

Command used to displays BASH shell aliases. C.

alias

C.

alias

Special variable on the system used to take away permissions on new files and

directories immediately after they are created. I.

umask

I.

umask

Command used to quickly create an empty file. D.

touch

D.

touch

Question 25

4 out of 4 points

The rmdir command automatically removes a directory and all of its subdirectories and files.

Selected Answer: False

Answers: True

False

Chapter 5

Question 1

0 out of 4 points

The easiest method for monitoring free space by mounted filesystems is to use the ____ command.

Selected Answer: dfs

Answers: df

fs

dfs

fd

Question 2

Page 17: Linux Final

0 out of 4 points

When a device is mounted, it is attached to a certain directory on the directory tree called a(n) mount point.

Selected Answer: False

Answers: True

False

Question 3

4 out of 4 points

If a device is mounted to a directory that contains files, those files are temporarily covered up until the device is

unmounted.

Selected Answer: True

Answers: True

False

Question 4

4 out of 4 points

In Linux, you must use only one type of filesystem on a system.

Selected Answer: False

Answers: True

False

Question 5

0 out of 4 points

If you do not know the type, major, or minor number of a device, you can use the ____ command to re-create the

device based on the common name.

Selected Answer: mkfs

Answers: /dev/MAKEDEV

mkfs

mknod

/dev/makedevice

Question 6

3.11111 out of 4 points

Match each term with the correct statement below.

Page 18: Linux Final

Question Answers Selected

Match

Directory that stores device files. F.

/dev

B.

/proc/devices

Indicates a particular device. D.

minor

number

D.

minor number

File on the hard disk representing a device on a Linux system. H.

device file

H.

device file

Command used to create modify filesystem parameters. E.

tune2fs

E.

tune2fs

The first readable sector of a hard disk, where partition definitions are stored. A.

MBR

A.

MBR

File that contains a list of devices that are currently used on the system and

their major numbers. B.

/proc/devices

F.

/dev

Rigid quota limits that the user cannot exceed. I.

hard limits

I.

hard limits

Points to the device driver for a device in the Linux kernel. G.

major

number

G.

major number

Hard disk quotas that the user can exceed for a certain period of time. C.

soft limits

C.

soft limits

Question 7

4 out of 4 points

Device files that represent disks, such as floppy disks, CD-ROMs, DVDs, USB flash drives, and hard disks, are

typically character device files because a fast data transfer rate is preferred.

Selected Answer: False

Answers: True

False

Question 8

0 out of 4 points

Linux requires ____ partition(s) at minimum.

Selected Answer: four

Answers: one

two

Page 19: Linux Final

three

four

Question 9

4 out of 4 points

Errors on a filesystem are often referred to as filesystem ____ and are common on most filesystems.

Selected Answer: corruption

Answers: breaks

corruption

degradation

unknown

Question 10

0 out of 4 points

There can be multiple device files per device.

Selected Answer: True

Answers: True

False

Question 11

4 out of 4 points

To format a filesystem with a specified filesystem type, you can use the ____ option with the mkfs command.

Selected Answer: -t

Answers: -t

-f

-c

-o

Question 12

0 out of 4 points

Data is read off of hard disks in concentric circles called ____.

Page 20: Linux Final

Selected Answer: blocks

Answers: tracks

blocks

sectors

cylinders

Question 13

0 out of 4 points

You can edit the quotas for certain users by using the ____ command.

Selected Answer: quota

Answers: edquota

editquota

quota

repquota

Question 14

4 out of 4 points

Several different devices can share the same major number even if they are different general types of devices.

Selected Answer: False

Answers: True

False

Question 15

4 out of 4 points

When you insert a DVD while in a GUI environment, it is automatically mounted by the system to a directory

underneath the /media directory that is named for the label on the DVD.

Selected Answer: True

Answers: True

False

Question 16

0 out of 4 points

Page 21: Linux Final

A CD-ROM can be ejected from the CD-ROM drive before the CD-ROM is properly unmounted.

Selected Answer: True

Answers: True

False

Question 17

0 out of 4 points

To mount all filesystems in the /etc/fstab file that are intended to mount at boot time, you can simply type the

____ command.

Selected Answer: mount -u

Answers: mount -o

mount -f

mount -u

mount -a

Question 18

4 out of 4 points

The ____ filesystem is used by software programs that write to a CD-RW or DVD-RW drive.

Selected Answer: udf

Answers: ntfs

udf

ext2

hpfs

Question 19

4 out of 4 points

To check a filesystem for errors, you can use the ____ command, which can check filesystems of many different

types.

Selected Answer: fsck

Answers: fcheck

fsc

fscheck

Page 22: Linux Final

fsck

Question 20

4 out of 4 points

Any existing directory can be used as a mount point.

Selected Answer: True

Answers: True

False

Question 21

4 out of 4 points

The ____ device file represents the first primary partition on the second IDE hard disk drive (primary slave).

Selected Answer: /dev/hdb1

Answers: /dev/hdc1

/dev/hdb1

/dev/hda1

/dev/hdc2

Question 22

0 out of 4 points

The ____ filesystem contains most of the operating system files.

Selected Answer: boot

Answers: boot

data

mnt

root

Question 23

0 out of 4 points

Devices that transfer data in a character-by-character fashion are referred to as ____ devices.

Page 23: Linux Final

Selected Answer: block

Answers: text

block

character

binary

Question 24

4 out of 4 points

To create, modify, or delete drive partitions after installation, you can use the ____ command.

Selected Answer:

fdisk

Answers: format

formatdisk

fdisk

partition

Question 25

4 out of 4 points

CD-ROMs typically use the ____ filesystem type.

Selected Answer: iso9660

Answers: ntfs

ext2

iso9660

ext3

Chapter 6

Question 1

0 out of 4 points

Any line in a kickstart file that starts with a(n) ____ symbol is a comment line and is ignored by the installation

program.

Page 24: Linux Final

Selected Answer: $

Answers: *

#

$

%

Question 2

4 out of 4 points

Ext3 is the traditional filesystem used on Linux.

Selected Answer: False

Answers: True

False

Question 3

4 out of 4 points

If a hard disk fails in a RAID level 0 configuration, then all of the data is lost.

Selected Answer: True

Answers: True

False

Question 4

4 out of 4 points

In Fedora Linux, a ____ file is a script file that specifies the choices that you would normally choose when you

install the operating system.

Selected Answer: kickstart

Answers: setup

startup

kickstart

scriptstart

Question 5

4 out of 4 points

Page 25: Linux Final

It is good form to check the installation log files after installation as well as verify settings on the system after

installation to ensure that all hardware was detected with the correct values.

Selected Answer: True

Answers: True

False

Question 6

4 out of 4 points

Most Parallel SCSI controllers support up to ____ devices.

Selected Answer: 15

Answers: 12

13

14

15

Question 7

4 out of 4 points

Normally, kickstart files are text files.

Selected Answer: True

Answers: True

False

Question 8

4 out of 4 points

RAID level ____ is commonly referred to as disk striping with parity.

Selected Answer: 5

Answers: 0

1

5

6

Question 9

4 out of 4 points

Page 26: Linux Final

RAID level ____ is often referred to as disk mirroring.

Selected Answer: 1

Answers: 1

2

3

4

Question 10

4 out of 4 points

In Fedora 13, the small bootable kernel used to fix problems with system startup is known as

_____________ ______________.

Selected Answer:

System Rescue

Answers: Boot Fix

Data Recovery

Mount Root

System Rescue

Question 11

4 out of 4 points

To perform a Linux installation over a network, you can connect to a server with the appropriate installation files

via FTP.

Selected Answer: True

Answers: True

False

Question 12

0 out of 4 points

To verify hardware settings, you can examine the contents of the ____ directory.

Selected Answer: /root

Answers: /log

Page 27: Linux Final

/root

/proc

/hw

Question 13

0 out of 4 points

When you use disk imaging software to write a Linux ISO image onto a USB flash drive, the filesystem existing

on the flash drive is maintained.

Selected Answer: True

Answers: True

False

Question 14

4 out of 4 points

You can install Linux from an ISO image file.

Selected Answer: True

Answers: True

False

Question 15

4 out of 4 points

You can use a small bootable Linux kernel to fix problems related to the following: the boot loader; filesystems

and partitions; the configuration file; and drivers.

Selected Answer: True

Answers: True

False

Question 16

0 out of 4 points

Most SCSI Controllers add a second BIOS to a computer that is started after the system BIOS.

Selected Answer: False

Answers: True

False

Question 17

Page 28: Linux Final

4 out of 4 points

If you are installing Linux Graphically, the installation program must first detect ____________ __________ and

__________and load the appropriate drivers into memory. Select 2

Video Card

Mouse

Answers: Correct Time & Date and Keyboard language

Video Card

Mouse

Kernel Version and Updates

Question 18

2 out of 4 points

The Fedora installation program creates two (2) log files. What are they? Select 2

Selected Answers:

/etc/installation.log.txt

/root/install.log

Answers: /etc/installation.log.txt

/root/fedorainstall.txt

/root/install.log

/root/install.log.syslog

Question 19

4 out of 4 points

To view the hardware detected at boot time use the __________ command after system startup.

Selected Answer:

DMESG

Page 29: Linux Final

Answers: TOP

DMESG

KICKSTART

PROC

Question 20

4 out of 4 points

Using the small bootable kernel to fix your system, you can mount the / (root) filesystem to the

__________________ directory in order to view the files and subdirectories on the hard disk.

Selected Answer:

/mnt/sysimage

Answers:

/mnt/sysimage

/root

/etc/sysrescue

/recovery

Question 21

4 out of 4 points

You can view the system processes that started successfully or unsuccessfully during boot time by viewing the

contents of the ___________ file.

Selected Answer:

messages

Answers: proc

devices

misc

messages

Question 22

4 out of 4 points

After installation you can ensure that Linux has detected the correct amount of RAM by viewing the contents of

Page 30: Linux Final

the _____________________ file.

Selected Answer:

/proc/meminfo

Answers: /root/memory

/etc/memstat

/proc/meminfo

/dev/mem

Question 23

4 out of 4 points

Although an __________________ might lead to increased performance, it also makes the CPU hotter and can

result in intermittent computer crashes.

Selected Answer:

Overclocked CPU

Answers: RAID Array

SSD Drive

Overclocked CPU

UPS System

Question 24

4 out of 4 points

If you already have an installed Linux system, you can use the ______________ command to writ the ISO image

to your USB flash memory drive.

Selected Answer:

dd

Answers: flashwrite

fw

drivedata

dd

Question 25

Page 31: Linux Final

4 out of 4 points

Parallel SCSI (Traditional SCSI) hard disks are uniquely identified by a _______________ and attach to a

controller via a _______________ cable. Select 2

Selected Answers:

Terminated

SCSI ID

Answers:

Terminated

High Powered

RAID ID

SCSI ID

Chapter 7

Question 1

4 out of 4 points

The file descriptor stdin is represented by the number ____.

Selected Answer: 0

Answers: 0

1

2

3

Question 2

4 out of 4 points

The test statement ____ would be used to determine if A is numerically greater than B.

Selected Answer: [ A –gt B ]

Answers: [ A –g B ]

[ A –ge B ]

[ A –gt B ]

[ A +eq B ]

Page 32: Linux Final

Question 3

4 out of 4 points

The default environment variable for the shell prompt is _______________

Selected Answer:

PS1

Answers:

PS1

HOME

PWD

PROMPT

Question 4

4 out of 4 points

The file descriptor stderr is represented by the number ____.

Selected Answer: 2

Answers: 0

1

2

3

Question 5

4 out of 4 points

You can use escape sequences to further manipulate the way text is displayed to the terminal screen provided the

-e option is specified with the echo command.

Selected Answer: True

Answers: True

False

Question 6

4 out of 4 points

Both Decision and Loop constructs can be used in shell script files.

Selected Answer: True

Page 33: Linux Final

Answers: True

False

Question 7

4 out of 4 points

You can send the standard output of one command to another command as standard input using the ____ shell

metacharacter.

Selected Answer: |

Answers: <

|

>

#

Question 8

0 out of 4 points

The ____ environment file is always executed after login for all users on the system, and sets most environment

variables, such as HOME and PATH.

Selected Answer:

~/.bash_profile

Answers: ~/.bash_profile

~/.bash_login

/etc/profile

~/.profile

Question 9

4 out of 4 points

You are limited to using one pipe | metacharacter on the command line to pipe information from one command to

another command.

Selected Answer: False

Answers: True

False

Question 10

Page 34: Linux Final

0 out of 4 points

You can redirect a file to the standard input of a command using the ____ metacharacter.

Selected Answer: >

Answers: >

#

|

<

Question 11

4 out of 4 points

To prevent a file from being cleared by the BASH shell and append output to the existing output, you can specify

three > metacharacters alongside the file descriptor.

Selected Answer: False

Answers: True

False

Question 12

4 out of 4 points

Aliases are shortcuts to commands stored in special variables that can be created and viewed using the alias

command.

Selected Answer: True

Answers: True

False

Question 13

0 out of 4 points

To see a list of all exported environment and user-defined variables in the shell, you can use the ____ command.

Selected Answer: set

Answers: env

set

setenv

getenv

Page 35: Linux Final

Question 14

2.22222 out of 4 points

Match each term with the correct statement below.

Question Answers Selected

Match

Numeric labels used to define command input and output. I.

file descriptors

B.

tee

Any error messages generated by a command. E.

stderr

E.

stderr

Variables that are typically set by the system and contain information that

the system and programs access regularly. C.

environment

variables

C.

environment

variables

Files that are typically used to create custom programs that perform

administrative tasks on Linux systems. G.

shell scripts

A.

hashpling

The first line in a shell script, which specifies the pathname to the shell that

interprets the contents of the shell script. A.

hashpling

I.

file descriptors

The entered data that is received and processed by a command during

execution. D.

stdin

D.

stdin

Constructs that alter the flow of a program based on whether a command in

the program completed successfully or based on a decision that the user

makes given a question posed by the program.

F.

decision

construct

F.

decision

construct

The normal output of a command. H.

stdout

H.

stdout

A filter command that takes information from standard input and sends that

information to a file, as well as to standard output. B.

tee

G.

shell scripts

Question 15

4 out of 4 points

Use the ________ escape character to prevent a new line from following a command

Selected Answer:

Page 36: Linux Final

\c

Answers: \\

\a

\b

\c

Question 16

4 out of 4 points

The ____ command counts the number of lines, words, and characters in a file.

Selected Answer: wc

Answers: pr

nl

tr

wc

Question 17

0 out of 4 points

If you have ____ permission to a shell script, you can execute the shell script like any other executable program

on the system.

Selected Answer: execute

Answers: read

write and read

execute

read and execute

Question 18

0 out of 4 points

If an executable file is not in a directory listed in the PATH variable, the user can simply type the name of the

command to run it.

Selected Answer: True

Page 37: Linux Final

Answers: True

False

Question 19

4 out of 4 points

Both standard output and standard error are displayed on the terminal screen by default.

Selected Answer: True

Answers: True

False

Question 20

0 out of 10 points

The _________command takes user input from stdin and places it in a variable specified by an argument to the

________ command. Select 1.

Selected Answer:

alias

Answers: input

var

read

alias

Question 21

0 out of 4 points

Given the syntax command && command, the command on the left of the && construct is executed only if the

command on the right of the && construct completed successfully.

Selected Answer: True

Answers: True

False

Question 22

4 out of 4 points

You can use the sed command to remove unwanted lines of text.

Selected Answer: True

Answers: True

Page 38: Linux Final

False

Question 23

4 out of 4 points

You can use the BASH shell to redirect standard output and standard error from the terminal screen to a file on

the filesystem using the ____ shell metacharacter followed by the absolute or relative pathname of the file.

Selected Answer: >

Answers: #

<

>

|

Question 24

4 out of 4 points

Most configuration files on Linux systems are delimited using ____ characters.

Selected Answer: colon

Answers: tab

colon

space

semicolon

Question 25

4 out of 4 points

The ____ command can be used to extract, manipulate, and format text using pattern-action statements.

Selected Answer: awk

Answers: sed

grep

awk

nl

Question 26

Page 39: Linux Final

0 out of 4 points

To see a list of the environment variables and their current values on a system, you can use the ____ command.

Selected Answer: env

Answers: env

get

set

setenv

Chapter 8

Question 1

4 out of 4 points

The Linux kernel is stored in the ____ directory.

Selected Answer: /boot

Answers: /

/boot

/root

/krnl

Question 2

0 out of 4 points

If you are using a Linux boot loader to dual boot another operating system in addition to Linux, it is easiest if

Linux is installed after the other operating system has been installed.

Selected Answer: False

Answers: True

False

Question 3

0 out of 4 points

____ of the GRUB boot loader typically resides on the Master Boot Record.

Selected Answer: Stage1.5

Answers: Stage1

Page 40: Linux Final

Stage1.5

Stage2

Stage2.5

Question 4

4 out of 4 points

The two most common desktop environments that are used on Linux are ____ and ____.

Selected Answer: KDE; GNOME

Answers: KDE; kwin

KDE; Xfce

Xfce; GNOME

KDE; GNOME

Question 5

4 out of 4 points

Configure GRUB by editing the configuration file __________________.

Selected Answer:

/boot/grub/grub.conf

Answers:

/boot/grub/grub.conf

/root/grub.conf

/etc/grubconf.txt

/grub/conf.txt

Question 6

0 out of 4 points

The root user most commonly uses the graphical user interface.

Selected Answer: True

Answers: True

False

Question 7

Page 41: Linux Final

4 out of 4 points

To see the current runlevel of the system and the previous runlevel (if runlevels have been changed since system

startup), you can use the runlevel command.

Selected Answer: True

Answers: True

False

Question 8

4 out of 4 points

The core component of a Linux GUI is X Windows.

Selected Answer: True

Answers: True

False

Question 9

4 out of 4 points

A Linux system in runlevel ____ is a system that has no daemons active in memory and is ready to be powered

off.

Selected Answer: 0

Answers: 0

1

6

7

Question 10

4 out of 4 points

____ is a freely available version of X Windows used in many Linux distributions.

Selected Answer: XFree86

Answers: X.org

XFree

FreeX86

XFree86

Page 42: Linux Final

Question 11

4 out of 4 points

LILO is the most common boot loader used on modern Linux systems and the only boot loader supported by

Fedora 13.

Selected Answer: False

Answers: True

False

Question 12

4 out of 4 points

You can use the ____ command to start, stop, or restart any daemons listed within the /etc/rc.d/init.d directory.

Selected Answer: service

Answers: daemon

manip-daemon

service

daemon-service

Question 13

4 out of 4 points

_____________ _____________ _________ are scripts used by the init daemon that prepare the system, start

daemons, and eventually bring the system to a usable state.

Selected Answer:

runtime configuration scripts

Answers: start time scripts

runtime configuration scripts

runlevel startup scripts

daemon startup configuration

Question 14

4 out of 4 points

By default, there is a /etc/X11/xorg.conf file in Fedora 13 because X Windows does not detect all hardware

information automatically.

Page 43: Linux Final

Selected Answer: False

Answers: True

False

Question 15

4 out of 4 points

The init daemon uses its configuration file ___________________ to determine the number of daemons that need

to be loaded on the system.

Selected Answer:

/etc/inittab

Answers: /boot/initdaemon

/etc/inittab

/inittable

/init/inittable

Question 16

4 out of 4 points

The default runlevel _______ for the Fedora and most Linux system is the 'Graphical Mode' or GUI startup.

Selected Answer:

5

Answers: 1

3

5

9

Question 17

0 out of 4 points

You can start the Linux GUI from runlevel 3 by typing _____________ at a command prompt.

Selected Answer:

XGnome

Answers: xstart

Page 44: Linux Final

GNOME

XGnome

startx

Question 18

4 out of 4 points

Most daemon scripts accept the arguments start, stop, and restart.

Selected Answer: True

Answers: True

False

Question 19

4 out of 4 points

Generally speaking any command that can be executed on the command line can also be placed inside any

environment file.

Selected Answer: True

Answers: True

False

Question 20

3.11108 out of 4 points

Match each term with the correct statement below.

Question Answers Selected Match

Used to run multiple OSs at the same time. H.

virtualization

software

H.

virtualization

software

Most common boot loader used on modern Linux systems. I.

Grand Unified

Bootloader

I.

Grand Unified

Bootloader

Partition to which the Master Boot Record points. A.

active partition

A.

active partition

Another name for runlevels. F.

initstates

F.

initstates

A system process that performs useful tasks, such as printing,

scheduling, and operating system maintenance. G.

daemon

G.

daemon

Page 45: Linux Final

Modifies the look and feel of X Windows. E.

window manager

C.

X client

Command used to configure video card and monitor used by X

windows B.

system-config-

display

B.

system-config-

display

A LILO version available for Intel Pentium and Itanium computers

that use Extensible Firmware Interface (EFI). D.

ELILO

D.

ELILO

Programs that tell X Windows how to draw the graphics and

display the results. C.

X client

E.

window manager

Question 21

4 out of 4 points

____________ displays hardware related messages generated by the Linux Kernel

Selected Answer:

dmesg

Answers: kernel

msgman

dmesg

krnlmsg

Question 22

4 out of 4 points

To create an encrypted password for use in the /boot/grub/grub.conf, you can use the ____ command

Selected Answer: grub-md5-crypt

Answers: grub-config

grub-encrypt

grub-pswrd

grub-md5-crypt

Question 23

4 out of 4 points

Changes to the /etc/lilo.conf file are recognized immediately without any user interaction.

Page 46: Linux Final

Selected Answer: False

Answers: True

False

Question 24

4 out of 4 points

The directories used to start and kill daemons in each runlevel are ______________

Selected Answer:

/etc/rc.d/rc*.d

Answers: /etc/runlevels*

/boot/rclevels*

/etc/rc.d/rc*.d

/etc/runlevels/rc*

Question 25

4 out of 4 points

The easiest way to control daemon startup by runlevel is the Service Configuration Utility.

Selected Answer: True

Answers: True

False


Recommended