Module 2 Flashcards

1
Q

Section 1

A

User commands
Both executable & shell programs

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

Section 2

A

System calls
Kernel routines that are invoked from user space

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

Section 3

A

Library functions
Provided by program libraries

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

Section 4

A

Special files
Such as device files

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

Section 5

A

File formats
For many configuration files & structures

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

Section 6

A

Game & screensavers
Historical section for amusing programs

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

Section 7

A

Conventions, standards, & miscellaneous
Protocols & file systems

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

Section 8

A

System administration & privileges commands
Maintenance tasks

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

Section 9

A

Linux kernel API
Internal kernel cells

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

Spacebar

A

Scroll forward (down) one screen

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

PageDown

A

Scroll forward one screen

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

PageUp

A

Scroll backward (up) one screen

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

DownArrow

A

Scroll forward one line

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

UpArrow

A

Scroll backward one line

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

D

A

Scroll forward one half-screen

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

U

A

Scroll backward one half-screen

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

/string

A

Search forward for “string” in the man page

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

N

A

Repeat previous search forward in the man page

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

Shift+N

A

Repeat previous search backward in the man page

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

G

A

Go to the start of the man page

21
Q

Shift+G

A

Go to the end of the man page

22
Q

Q

A

Exit man & return to the command shell prompt

23
Q

man

A

Allows users to view the reference manual of a command or utility run in the terminal

24
Q

less

A

Terminal pager program used to view the contents of a text file one screen at a time

25
Q

tee

A

Used w/ a pipe, reads standard input, then writes the output of a program to standard output & simultaneously copies it into the specified file or files

Copies its standard input to its standard output & also redirects its standard output to the files that are given as arguments to the command

26
Q

set

A

Lists all shell variables that are currently set

27
Q

export

A

Can assign any variable that is defined in the shell as an environment variable by marking it for export

Displays all exported variables

28
Q

unalias

A

Unsets an alias

29
Q

Standard Input

A

Channel 0
Reads input from the keyboard
stdin

30
Q

Standard Output

A

Channel 1
Sends normal output to the terminal
stdout

31
Q

Standard Error

A

Channel 2
Sends error message to the terminal
stderr

32
Q

> file

A

Redirect stdout to overwite a file

33
Q

> > file

A

Redirect stdout to append a file

34
Q

2>file

A

Redirects stderr to overwrite a file

35
Q

2>/dev/null

A

Discard stderr error messages by redirecting them to /dev/null

36
Q

> file 2>&1

A

Redirect stdout & stderr to overwrite the same file

Same as: &>file

37
Q

&>file

A

Redirect stdout & stderr to overwrite the same file

Same as: > file 2>&1

38
Q

> > file 2>&1

A

Redirect stdout & stderr to append to the same file

Same as: &» file

39
Q

&» file

A

Redirect stdout & stderr to append to the same file

Same as:&raquo_space; file 2>&1

40
Q

Vim - “u” key

A

Undoes the most recent edit

41
Q

Vim - “x” key

A

Deletes a single character

42
Q

Vim - “:w” command

A

Writes (saves) the file & remains in command mode for more editing

43
Q

Vim - “:wq” command

A

Writes (saves) the file & quits Vim

44
Q

Vim - “:q!” command

A

Quits Vim, & discards all file changes since the last write

45
Q

Insert Mode

A

“i”

All typed of text becomes file content

46
Q

Visual Mode

A

“v”

Multiple characters may be selected for text manipulation

47
Q

Extended Command Mode

A

”:”

Perform tasks such as writing the file (to save it) & quitting the Vim editor

48
Q

Command Mode

A

Used for navigation & text manipulation

49
Q
A