Topic 2 - Unix Basics Flashcards

1
Q

Every machine including computers that is used by human beings can be thought of as two components: (Give the unix version of answer too)

A

1) the interface (terminal) 2) everything else (host)

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

A terminal has two jobs:

A

1) Accepting input
2) Generating output

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

What’s the name of the super user account in a Unix system?

A

“root”. In Windows: “Administrator”

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

In Unix, what happens when you enter a command and hit enter?

A

Contents of the command line are sent to the shell. The shell searches for an executable program that matches the name of the command - if it is found, it executes the program using the provided options and arguments. Otherwise, it displays an error message

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

In the command-name, each option and each argument are separated by ____?

A

At least one or

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

Options are identified by:

A

Hyphen followed by a single letter or number

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

Multiple options can be ______ together using a single ______?

A

Concatenated, hyphen.

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

Editors in Unix come in two general flavors:

A

1) Mode editors 2) Mode-less editors

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

Input mode allows for___?

A

Entry of text.

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

Command mode allows for___?

A

Positioning within file and allows more sophisticated text modification.

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

What is “ed” ?

A

ed is the original line editor, later on extended to “ex”

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

Describe “ed” and “ex”

A
  • Does not give you a local or screen picture of what is in your file (people dislike it) - Has the ability to make massive changes with one command - May of its capabilities have been incorporated into vi and emacs
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is “sed”?

A

A stream editor - used to perform basic text transformations on an input stream (input stream can be the output of another program)

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

Describe “vi” and “vim”

A

Screen editors. Have 3 modes: 1) Command mode 2) Colon mode 3) Input mode Vi and vim start in the command mode.

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

Describe Mode-less editors.

A

have only one mode: WYSIWYG: What you see is what you get. Examples: edit, edit, pico, emacs, xemacs

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