Chapter 9 Flashcards

1
Q

Using a semicolon allows you to do what?

command ; command

A

Combine two commands into one line

known as the list operator

455

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

subshell

A

a child process that is created by either the shell or a shell script when a process is initiated

454

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

Variable

DISPLAY

A

identifies the display. Usually set to :0.0, which indicates the first display on the current computer. If running multiple sessions the counter increases to ID it. :0.0 is the first one, :1.0 is the second, etc

456

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

Variable

EDITOR

A

Some programs launch the program pointed to by the environment variable when they need to call a text editor for you to use.

456

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

Variable

HISTSIZE

A

This variable determines the number of commands that will be saved in your history file

456

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

Variable

HOME

A

Points to your home directory. Some programs use it to help them look for configuration files or as a default locations in which to store files

456

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

Variable

HOSTNAME

A

This is the current TCP/IP hostname of the computer

456

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

Variable

LANG

A

The system holds your current language, specified locale, using this.

456

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

Variable

LD_LIBRARY_PATH

A

A few programs use this environment variable to indicate directories in which library files may be found. It works much like a path

456

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

Variable

LOGNAME

A

This variable holds your username when you are logged into the systems

456

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

Variable

MAIL

A

This variable holds the location of the user’s mail spool. It’s usually /var/spool/mail/username

456

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

Variable

PAGER

A

If set, this variable determines the pager to use for output by programs, such as man

456

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

Variable

PATH

A

This is an unusually important environment variable. It sets the path for a session, which is a colon-delimited list of directories

457

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

Variable

PS1

A

This is the default prompt in bash. It generally includes variables of its own, such as \u (username) \h (hostname), and \W (for profile)

457

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

Variable

PWD

A

This is the present working directory. This environment variable is maintained by the system. Programs may use it to search for files when you don’t provide a complete pathname

457

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

Variable

SHELL

A

holds the path to the current command shell

457

17
Q

Variable

TERM

A

name of the current terminal type. To move display of text effects for programs like text-mode editors

457

18
Q

Variable

TZ

A

Sets the environment variable to your own timezone which is most useful if that’s different than the computer’s time zone

457

19
Q

Variable

USER

A

Current username. It’s a variable that’s maintained by the system

457

20
Q

Variable

USERNAME

A

An alternative to the USER variable

457

21
Q

Conditional Expression

A

enables a script to determine whether to follow a script based on a qualifier

478

22
Q

user-defined variable

A

variable defined by a user for various purposes like storing data

474

23
Q

writing a condition

A

use [ condition ]

the spaces are necessary! Linux is stupid!

482

24
Q

elif

A

means “else if”

483

25
Q

||

A

means or

483

26
Q

For loop syntax

A

For variable in list
do
commands
done

490

27
Q

sendmail

A

former dominant program for sending email server packages on the Internet. Still very powerful

499

28
Q

Postfix

A

modular replacement for sendmail. Sendmail uses a single program to do everything, postfix uses multiple programs, each with its own specific small task

499

29
Q

Exim

A

Like sendmail, but with a simpler configuration file format making it easier to configure

499

30
Q

Qmail

A

4th major Linux email server. Modular server with security as a major design goal.

499

31
Q

mail server options

-v

A

produces a verbose output. Helpful when debugging

501

32
Q

mail server options

-s

A

subject option enables you to specify the subject line

501

33
Q

mail server options

-f

A

to read your email.

501

34
Q

Environmental Variables

A

means to pass names and data. Used to store information on the system for the benefit of running programs. There are over 40 default in the system.

515