Chapter 1 Flashcards

1
Q

Shell

A

Program that accepts and interprets text-mode commands and provides an interface to the system

4

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

Environment variables

A

placeholders for data that may be useful to many programs

4

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

bash

A

most common default shell for user accounts

4

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

sh

A

the Bourne shell

4

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

tcsh

A

based on csh (a C shell). No major distros. similar to bash

5

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

csh

A

the original C-shell

5

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

ksh

A

the Korn shell. Bourne shell and the C shell extended

5

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

zsh

A

the Z shell takes the Korn shell to the next level

5

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

2 types of default shells

A

default interactive shell

default system shell

5

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

/bin/sh

A

a pointer to the system’s default system shell

5

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

uname

A

command showing which OS is being run

6

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

cd

A

change directory

6

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

~

A

home directory

6

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

echo

A

displays the text that you enter

7

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

time

A

tells you how long the system took to execute a command

7

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

set

A

displays a wide variety of options relating to bash shell operation. These options are formatted much like environment variables, but they aren’t the same things.

7

17
Q

exit vs logout

A

exit terminates any shell

logout terminates only login shells

7

18
Q

Login shells

A

shell programs that are launched automatically when you initiate a textmode login as opposed to those that run in xterm windows or on other terminal emulators

7

19
Q

-a

A

shows if there are internal commands with installed duplicate external commands

7

20
Q

what happens when you type a command that the shell does not recognize as one of its internal commands?

A

the shell checks its path to find a program by that name to execute it

8

21
Q

command completion

A

type part of the command or a filename (as an option to the command or filename and press tab and the shell fills in the rest of it

9

22
Q

How long can filenames be?

A

up to 255 characters

10

23
Q

Retrieve command

A

Pressing the up button on the command line. It repeats the previous command. Guess what down does.

10

24
Q

backward/reverse search

A

Press Ctrl+R and begin typing characters that should be unique to the command from anywhere inside the command

10

25
Q

forward search

A

Ctrl+S reverses the search from backward to forward.

10

26
Q

What do you do if Ctrl+S causes a hang?

A

Ctrl+Q resumes terminal function

10

27
Q

Ctrl+A

A

moves the curser to the start of the line

10

28
Q

Ctrl+E

A

moves the curser to the end of the line

10

29
Q

Ctrl left/right

A

moves the curser left or right by a word

10

30
Q

Ctrl+D/delete

A

deletes the character under the curser as apposed to behind it

11

31
Q

Ctrl+T

A

transposes the character before the curser with the character under the curser

11

32
Q

Esc then U

A

Changes the letters between the curser and the end of the word to uppercase

11

33
Q

Esc then L

A

Changes the letters between the curser and the end of the word to lowercase

11

34
Q

Ctrl+X then Ctrl+E

A

launches a text editor

11

35
Q

history

A

displays all of the commands in the history up to 500

11

36
Q

!

A

executes the command that corresponds to the number that follows it

11

37
Q

man

A

loads the manual entry on how to use a command

14

38
Q

info

A

a manual in hypertext format

16