Test 3 Flashcards

1
Q

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.

1) True
2) False

A

2) False

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

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

1) True
2) False

A

1) True

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

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

1) True
2) False

A

1) True

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

Any command that can be executed on the command line can also be placed inside any environment file.

1) True
2) False

A

1) True

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

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.

1) True
2) False

A

2) False

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

The BASH shell assumes stdout in the absence of a numeric file descriptor.

1) True
2) False

A

1) True

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

Users can create their own custom variables, called shell variables.

1) True
2) False

A

2) False

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

The ENV environment variable represents the location of the BASH run-time configuration file.

1) True
2) False

A

1) True

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

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

1) True
2) False

A

1) True

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

In a decision construct, you can have an unlimited number of if then statements.

1) True
2) False

A

2) False

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

The file descriptor stdin is represented by the number ____.

1) 0
2) 1
3) 2
4) 3

A

1) 0

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

The file descriptor stderr is represented by the number ____.

1) 0
2) 1
3) 2
4) 3

A

3) 2

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

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.

1) #
2)
4) |

A

3) >

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

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

1) >
2) #
3) |
4) <

A

4) <

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

The ____ command can be used to replace characters in a file sent via Standard Input.

1) tr
2) rt
3) ts
4) st

A

1) tr

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

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

1) <
2) |
3) >
4) #

A

2) |

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

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

1) pr
2) nl
3) tr
4) wc

A

4) wc

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

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

1) sed
2) grep
3) awk
4) nl

A

3) awk

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

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

1) tab
2) colon
3) space
4) semicolon

A

2) colon

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

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

1) env
2) get
3) set
4) setenv

A

3) set

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

The ____ command could be used to view the contents of the environment variable that represents the BASH shell prompt.

1) ls $PWD
2) echo #PWD
3) echo $PS1
4) ls #PS1

A

3) echo $PS1

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

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

1) env
2) set
3) setenv
4) getenv

A

1) env

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

The ____ environment file is always executed immediately after login for all users on the system, and sets most environment variables, such as HOME and PATH.

1) ~/.bash_profile
2) ~/.bash_login
3) /etc/profile
4) ~/.profile

A

3) /etc/profile

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

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

1) read
2) write and read
3) execute
4) read and execute

A

4) read and execute

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

The ____ escape sequence represents a form feed.

1) \n
2) \f
3) /f
4) /n

A

2) \f

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

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

1) [ A –g B ]
2) [ A –ge B ]
3) [ A –gt B ]
4) [ A +eq B ]

A

3) [ A –gt B ]

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

Are both standard output and standard error displayed on the terminal screen by default?

1) Yes
2) No

A

1) Yes

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

When redirecting both standard output and standard error to a file, does using the same filename for both result in a loss of data?

1) Yes
2) No

A

1) Yes

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

Can the redirection shell metacharacter be used to redirect between a command and another command?

1) Yes
2) No

A

2) No

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

When performing a pipe, do you need to have spaces around the | metacharacter?

1) Yes
2) No

A

2) No

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

Can you combine redirection and piping together?

1) Yes
2) No

A

1) Yes

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

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.

1) True
2) False

A

1) True

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

The /etc/rc.d/rc 5 script only executes files that start with S in the /etc/rc.d/rc5.d/ directory.

1) True
2) False

A

2) False

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

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

1) True
2) False

A

1) True

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

Using one boot loader to boot one of several operating systems is known as multi-booting.

1) True
2) False

A

2) False

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

LILO is the most common boot loader used on modern Linux systems and the only boot loader supported by Fedora 13. 1) True
2) False

A

2) False

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

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.

1) True
2) False

A

1) True

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

Administrators most commonly use a(n) graphical user interface.

1) True
2) False

A

2) False

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

The core component of a Linux GUI is X Windows.

1) True
2) False

A

1) True

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

The Linux kernel is stored in the ____ directory.

1) /
2) /boot
3) /root
4) /krnl

A

2) /boot

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

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

1) Stage1
2) Stage1.5
3) Stage2
4) Stage2.5

A

1) Stage1

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

In the /etc/lilo.conf file, the ____ keyword specifies the absolute pathname to the Linux kernel.

1) image=
2) default=
3) install=
4) root=

A

1) image=

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

In Linux, runlevel ____ is also known as multiuser mode.

1) 1
2) 2
3) 3
4) 4

A

2) 2

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

A Linux system in runlevel ____ is a system that has no daemons active in memory and is ready to be powered off. 1) 0

2) 1
3) 6
4) 7

A

1) 0

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

After the entries in /etc/inittab have been executed, the ____ file is executed to perform tasks that must occur after system startup.

1) /etc/rc/rc.local
2) /etc/rc.d/local
3) /etc/rc.d/rc.local
4) /etc/rc/local

A

3) /etc/rc.d/rc.local

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

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

1) daemon
2) manip-daemon
3) service
4) daemon-service

A

3) service

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

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

1) X.org
2) XFree
3) FreeX86
4) XFree86

A

4) XFree86

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

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

1) KDE; kwin
2) KDE; Xfce
3) Xfce; GNOME
4) KDE; GNOME

A

4) KDE; GNOME

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

The ____ window manager is used for the GNOME desktop in Red Hat Fedora Core 2.

1) kwin
2) twm
3) metacity
4) sawfish

A

3) metacity

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

If your system uses the X.org implementation of X Windows, the mouse, keyboard, monitor, and video adapter card information is stored in the ____ file in text format.

1) /etc/X11/XF86Config
2) /etc/X11/xorg.conf
3) /etc/X11/xwin.conf
4) /etc/X11/xorg

A

2) /etc/X11/xorg.conf

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

After configuring X Windows, you can fine-tune the vsync and hsync of the video card using the ____ utility within the desktop environment.

1) xvidtune
2) xvideotune
3) xtune
4) vidtune

A

1) xvidtune

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

Can there be more than one active partition on a hard disk?

1) Yes
2) No

A

2) No

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

Can LILO boot a Windows kernel directly? 1) Yes

2) No

A

2) No

54
Q

Can you use a Windows boot loader to load the Linux operating system?

1) Yes
2) No

A

1) Yes

55
Q

Do X clients need to run on the same computer as X Windows?

1) Yes
2) No

A

2) No

56
Q

If you use runlevel 3, can you start the GNOME Display Manager manually?

1) Yes
2) No

A

1) Yes

57
Q

Each process can start an unlimited number of other processes.

1) True
2) False

A

1) True

58
Q

The ps command is the only command that can view process information.

1) True
2) False

A

2) False

59
Q

The killall command uses the PID to kill a process.

1) True
2) False

A

2) False

60
Q

After a process has been started, you can change its priority by using the renice command.

1) True
2) False

A

1) True

61
Q

If the /etc/at.allow and /etc/at.deny files do not exist, only the root user is allowed to schedule tasks using the at daemon.

1) True
2) False

A

1) True

62
Q

The init daemon has a PID of 0.

1) True
2) False

A

2) False

63
Q

While a process is waiting for its parent process to release the PID, the process is said to be in a(n) zombie state.

1) True
2) False

A

1) True

64
Q

A value of 0 for a process priority indicates low priority.

1) True
2) False

A

2) False

65
Q

The SIGINT kill signal is the default kill signal used by the kill command.

1) True
2) False

A

2) False

66
Q

Most commands such as ls, find, and grep are binary programs that exist on the filesystem until executed.

1) True
2) False

A

1) True

67
Q

A system process that is not associated with a terminal is called a(n) ____ process.

1) daemon
2) user
3) parent
4) startup

A

1) daemon

68
Q

To display an entire list of processes across all terminals and including daemons, you can add the ____ option to any ps command.

1) -f
2) -l
3) -a
4) -e

A

4) -e

69
Q

In the output of the ps -l command, the ____ column is the most valuable to systems administrators because it indicates what the process is currently doing.

1) process state
2) process flag
3) process priority
4) PID

A

1) process state

70
Q

The ____ option to the ps command displays all processes that do not run on terminals.

1) -f
2) x
3) a
4) -l

A

2) x

71
Q

There are ____ different kill signals that the kill command can send to a certain process.

1) 16
2) 32
3) 64
4) 128

A

3) 64

72
Q

The ____ kill signal stops a process and then restarts it with the same PID.

1) SIGINT
2) SIGQUIT
3) SIGHUP
4) SIGTERM

A

3) SIGHUP

73
Q

The ____ kill signal terminates a process by taking the process information in memory and saving it to a file called core on the hard disk in the current working directory.

1) SIGINT
2) SIGQUIT
3) SIGKILL
4) SIGTERM

A

2) SIGQUIT

74
Q

You can execute ____ main types of Linux commands.

1) two
2) three
3) four
4) five

A

2) three

75
Q

When you append a(n) ____ to a command, the command is run in a background process.

1) &
2) $
3) #
4) %

A

1) &

76
Q

When killing a background job with the kill command, you must prefix the background job IDs by a(n) ____.

1) &
2) #
3) $
4) %

A

4) %

77
Q

After a background process has been started, it can be moved to the foreground by using the ____ command.

1) b2f
2) fgd
3) fg
4) fgnd

A

3) fg

78
Q

When there are multiple background processes executing in the shell, the jobs command indicates the most recent one with a(n) ____ symbol.

1) *
2) +
3) -
4) /

A

2) +

79
Q

Processes are started with a nice value of ____ by default.

1) -20
2) 0
3) 1
4) 19

A

2) 0

80
Q

To display a list of at Job IDs, you can specify the ____ option to the at command.

1) -l
2) -u
3) -a
4) -d

A

1) -l

81
Q

The ____ field in a cron table contains the absolute pathname to the command to be executed.

1) first
2) second
3) fifth
4) sixth

A

4) sixth

82
Q

To create or edit a user cron table, you can use the ____ option to the crontab command.

1) -u
2) -c
3) -f
4) -e

A

4) -e

83
Q

Can a process have multiple parent processes?

1) Yes
2) No

A

2) No

84
Q

Does a negative nice value give a process a greater chance of a lower priority?

1) Yes
2) No

A

2) No

85
Q

Can the top command be used to change the priority of processes?

1) Yes
2) No

A

1) Yes

86
Q

Can the SIGKILL kill signal be trapped by a process?

1) Yes
2) No

A

2) No

87
Q

If you send a kill signal to a process that has children, are the child processes terminated?

1) Yes
2) No

A

1) Yes

88
Q

If you want to enable a printer, you must specify the printer name to the cupsenable command.

1) True
2) False

A

1) True

89
Q

You can restrict who can print to certain printers by using the ____ command.

1) lpadmin
2) lpa
3) lpr
4) admin

A

1)lpadmin

90
Q

Log files are typically stored in the ____ directory.

1) /dev/log
2) /var/log
3) /boot/log
4) /log

A

2) /var/log

91
Q

The ____ log file contains information and error messages regarding network access generated by daemons such as sshd and xinetd.

1) wtmp
2) messages
3) dmesg
4) secure

A

4) secure

92
Q

To convert a system so that it uses an /etc/shadow file to store the encrypted password after installation, you can run the ____ command.

1) passwdconv
2) pwconv
3) passwd
4) pwdcv

A

2) pwconv

93
Q

You can create user accounts on the Linux system by using the ____ command.

1) uadd
2) usercreate
3) adduser
4) useradd

A

4) useradd

94
Q

The skeleton directory on most Linux systems is ____.

1) /etc/skel
2) /var/skel
3) /etc/skeleton
4) /var/skeleton

A

1) /etc/skel

95
Q

To lock an account, you can use the usermod command with the ____ option.

1) -U
2) -u
3) -l
4) -L

A

4) -L

96
Q

You can specify the ____ option to the userdel command to remove the home directory for the user and all of its contents.

1) -r
2) -d
3) -R
4) -x

A

1) -r

97
Q

To change the primary group temporarily to another group that is listed in the output of the groups and id commands, you can use the ____ command.

1) newgroup
2) groupmod
3) newgrp
4) groupadd

A

3) newgrp

98
Q

Can a user account be used to log in to the system before its password is set?

1) Yes
2) No

A

2) No

99
Q

Can the usermod command be used to modify the password expiration information stored in /etc/shadow?

1) Yes
2) No

A

2) No

100
Q

The compress utility preserves the original ownership, modification, and access time for each file that it compresses.

1) True
2) False

A

1) True

101
Q

When using the gzip utility, the -1 option is also known as best compression and results in a higher compression ratio.

1) True
2) False

A

2) False

102
Q

When creating a system backup, temporary files in the /tmp and /var/tmp directories should be included.

1) True
2) False

A

2) False

103
Q

The tar utility cannot back up device files or files with filenames longer than 255 characters.

1) True
2) False

A

1) True

104
Q

It is good form to read the Makefile after you run the configure script.

1) True
2) False

A

1) True

105
Q

If a compression utility compresses a file to 52% of its original size, it has a compression ratio of 52%.

1) True
2) False

A

2) False

106
Q

To decompress files that have been compressed with the compress utility, you can use the decompress command followed by the names of the files to be decompressed.

1) True
2) False

A

2) False

107
Q

Traditionally, CDs/DVDs were used to back up data.

1) True
2) False

A

2) False

108
Q

Because its primary use is to back up files in case of system failure, cpio uses absolute pathnames by default when archiving.

1) True
2) False

A

1) True

109
Q

The dump/restore utility can only work with files on ext2 and ext3 filesystems.

1) True
2) False

A

1) True

110
Q

The compression algorithm used by the compress utility has an average compression ratio of ____%.

1) 30-40
2) 40–50
3) 50-60
4) 60-70

A

2) 40–50

111
Q

When using the compress utility, each file is renamed with a(n) ____ filename extension to indicate that it is compressed.

1) .c
2) .cmp
3) .cpz
4) .Z

A

4) .Z

112
Q

The ____ command can be used to display the contents of a compressed file.

1) acat
2) zcat
3) cat
4) ccat

A

2) zcat

113
Q

The average compression ratio for gzip is ____%.

1) 40-50
2) 50-60
3) 60–70
4) 70-80

A

3) 60–70

114
Q

When used with the compress command, the ____ option can be used to compress symbolic links.

1) -f
2) -c
3) -v
4) -r

A

1) -f

115
Q

When used with the uncompress command, the ____ option displays the contents of the compressed file to Standard Output.

1) -c
2) -v
3) -f
4) -r

A

1) -c

116
Q

If no level of compression is specified, the gzip command assumes the number ____.

1) 4
2) 5
3) 6
4) 7

A

3) 6

117
Q

The ____ option, when used with the gzip command, causes the compression ratio for files that have been compressed to be listed.

1) -c
2) -f
3) -r
4) -l

A

4) -l

118
Q

The filename extension given to files compressed with bzip2 is ____.

1) .bz
2) .bz2
3) .gz
4) .Z

A

2) .bz2

119
Q

When used with the tar utility, the ____ option causes filenames to be stored in an archive using absolute pathnames.

1) -a
2) -b
3) -p
4) -n

A

3) -p

120
Q

The ____ option can be used with the tar command to extract a specified archive.

1) -s
2) -e
3) -x
4) -a

A

3) -x

121
Q

When using the cpio utility, the ____ option causes a new archive to be created.

1) -n
2) -c
3) -o
4) -a

A

3) -o

122
Q

You can perform up to ____ different incremental backups using the dump/restore utility.

1) seven
2) eight
3) nine
4) ten

A

3) nine

123
Q

Most Linux distributions today use ____ as their package manager.

1) RPM
2) PRM
3) MPR
4) RMP

A

1) RPM

124
Q

The ____ command looks for a Makefile and uses the information within to compile the source code into binary programs using the appropriate compiler program for the local hardware architecture.

1) configure
2) install
3) make install
4) make

A

4) make

125
Q

To remove a package from the system, you can use the ____ option to the rpm command.

1) -d
2) -e
3) -r
4) -x

A

2) -e

126
Q

Can the contents of a compressed file be viewed page-by-page?

1) Yes
2) No

A

1) Yes

127
Q

Can symbolic links be compressed by the gzip utility?

1) Yes
2) No

A

1) Yes

128
Q

Can the bzip2 utility be used to compress a directory full of files?

1) Yes
2) No

A

2) No

129
Q

Does the tar utility compress files inside an archive?

1) Yes
2) No

A

2) No

130
Q

Can you write files to CD and DVD media using the tar, cpio, or dump utilities?

1) Yes
2) No

A

2) No