Chapter 5 Flashcards

1
Q

A Linux command line, or blank as it’s properly called, is a program.

A

shell

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

You can start a shell in a GUI window called a blank, or you can log into the computer locally via a text-mode console.

A

terminal program

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

The default shell in most Linux distribution is the blank.

A

Bourne Again Shell (bash)

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

Linux supports blank which are virtual screens that can hold various types of information - textual or graphical

A

virtual terminals (VT)

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

How can you switch between VTS?

A

Ctrl+Alt+Fn(FN key for VT number)

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

How do you terminate your text-mode session?

A

Type exit or logout

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

Blank is the name of the command used to run the program

A

COMMAND-NAME

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

Blank are additional items added to modify the command’s behavior

A

[OPTION]s

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

Blank is an item you pass to the command to let the program know you want to operate on that item.

A

[ARGUMENT]

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

The blank program displays which users are currently on the system

A

who

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

What is the command to show when the program was started?

A

who -b

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

What command is short for concatenate and accepts arguments?

A

cat

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

What command is used to display the contents of MyFile.txt?

A

cat MyFile.txt

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

What command adds line numbers and displays contents of MyFile.txt?

A

cat -b MyFile.txt

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

What command allows you to learn command usage details?

A

man

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

What is the command to learn about the cat command?

A

man cat

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

What command displays information on the computer’s use of memory?

A

free

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

What command will result in a common-delimited set of directory names, which the shell searches in sequence whenever you type a command that it doesn’t handle directly

A

echo $PATH

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

How can you run a program that is not in one of the PATH directories?

A

By typing the program’s directory location along with its name

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

When you run an executable program. that is not located in the PATH, it is called blank outside the defined path.

A

invoking a command

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

If you would like to determine how an executable program would be handled, what command would you type, which will show you the program’s directory location?

A

type [executable_program_name]
type free

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

When you launch a GUI program from the terminal window, the GUI program opens its own window and the terminal program becomes blank.

A

unresponsive

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

What keystroke allows you to suspend a GUI program run from the terminal to allow you to run more commands in the terminal?

A

Ctrl+Z

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

After you suspend a program, if you want both to run the GUI program and use the terminal from which you launched it, you can type blank in the terminal and both programs will be active.

A

bg

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

If you want to wake a sleeping GUI program, but you don’t need the terminal window to be active, what do you type?

A

fg

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

What command do you type to run firefox in the background

A

firefox&

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

Blank is way to enter a long command name or filename with few keystrokes

A

Command completion

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

After you type part of the command name or file name, what key do you press for command completion?

A

tab

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

What keystroke allows you to move through previously typed commands?

A

up arrow

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

What keystroke retrieves an earlier entry bypassed when using the up arrow?

A

down arrow

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

What keystroke moves the cursor left one character?

A

left arrow

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

What keystroke moves the arrow right one character?

A

right arrow

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

What keystroke moves the cursor to the start of the line?

A

Ctrl+A

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

What keystroke moves the cursor to the end of the line?

35
Q

What keystroke deletes the character under the cursor?

36
Q

What keystroke deletes the character to the left of the cursor?

37
Q

What keystroke swaps the character under the cursor with the one to the left of the cursor?

38
Q

What keystroke launches a full-fledged editor on the current command line?

A

Ctrl+X and then Ctrl+E

39
Q

What keystroke searches for a command after typing a few characters?

40
Q

What command do you type to view all of the commands in your history, which allows you to limit the result by typing a number following the command

41
Q

Blank describe not only programs, but also configuration files and other features of a Linux installation

A

manual pages

42
Q

Manual pages are not blank in nature, but are meant to be a quick reference guide.

43
Q

What is the man page section number for executable programs and shell commands?

44
Q

What is the man page section number for system calls by the kernel?

45
Q

What is the man page section number for library calls by program libraries?

46
Q

What is the man page section number for device files (usually stored in /dev)

47
Q

What is the man page section number for file formats?

48
Q

What is the man page section number for games?

49
Q

What is the man page section number for miscellaneous (metro packages, conventions, and so on)

50
Q

What is the man page section number for system administration commands (programs run mostly or exclusively by root)?

51
Q

What is the man page section number for kernel routines?

52
Q

How can you override man command default search behavior?

A

By pasing a section number before the keyword

53
Q

The blank command searches summary information contained in the man page for the keyword you specify

54
Q

The blank command performs a thorough search of both the Name and Description sections of the man pages

55
Q

What response with the whatis or apropos command indicates that you typically need to change the keyword you are using

A

nothing appropriate

56
Q

You can update the man database manually by using superprivileges and typing the blank command for older Linux distributions or blank otherwise

A

makewhatis
mandb

57
Q

Name 9 of the common sections found in manual pages

A

Name
Synopsis
Description
Options
Files
See Also
Bugs
History
Author

58
Q

Linux’s man system uses a program called blank to display information. This program is a pager, which displays text file one screen(one page) at a time.

59
Q

What keystroke displays help on using less?

60
Q

What (5) keystrokes move down one screen in the document using less?

A

Page down, spacebar, Ctrl+V, F, or Ctrl+F

61
Q

What 4 keystrokes move up one screen using less?

A

Page up, Esc+V, B, Ctrl+B

62
Q

The man page system is typical on Unix-like systems, but it is also old and quite limited. A newer documentation system called blank is also available.

A

info pages

63
Q

Man pages are not blank while info pages are

A

hyperlinked

64
Q

Each info pages is known as a blank

65
Q

Info pages (nodes) are organized on blank

66
Q

To access info pages what command do you type?

A

info [command]

67
Q

What keystrokes exits the man page less command?

A

Q, :Q, or ZZ

68
Q

What keystroke displays help information in the info pages

69
Q

What keystroke moves to the next node in the info pages

70
Q

What keystroke moves back in a series of nodes in the info pages

71
Q

What keystroke allows you to move to the node that is highlighted in the info pages

72
Q

What keystroke moves up or down the page of the current node in the info pages

A

Page up, Page down

73
Q

What keystroke exits the info pages

74
Q

The Linux blank command searches a database of filenames that Linux maintains in order to find additional program documentation.

75
Q

What keystroke moves the cursor to the start of the line when typing a command in bash?

76
Q

How can you run a program in the background when launching it from a shell? (choose all that apply)

A. Launch the program with the start command, where command is the command you want to run.

B. Launch the prorgram by typing bg command

C. Append the apersand after the command name

D. Launch the programs normally, press CTRL+Z in the shell and then type bg in the shell

E. Launch the programs normally, press CTRL+Z in the shell and then type fg in the shell

77
Q

What command is an improved version of more?

78
Q

True or False: Pressing Alt+F3 in the GUI brings up a text-mode display that you can use to log into Linux

79
Q

True or False: You can force man to display a man page in a specific section of the manual by preceding the search name with the section number

80
Q

True or False: Linux documentation in the /usr/share/doc directory tree is almost always in OpenDocument text format

81
Q

Type logout or blank to end a text-mode terminal session

82
Q

Each document in an info page is known as a blank

83
Q

The blank command searches a database of filenames, enabling you to identify files quickly whose names match a term that you specify