103.1 Command Line (Env Vars, Displays) Flashcards

1
Q

env variables

shortcuts with easy to use and remember designation that allow you to indicate
paths
commands
aliases
other info

A

env variables

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

env variables

command to list all env vars set for the current session EXCEPT for shell settings

A

env

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

set

used to view any shell settings or shell variables for the session

A

set

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

shopt

used to view any shell settings or shell variables for the session

A

shopt

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

PATH

env var containing a colon separated listing of directories that are searched - in order for command executable files

A

PATH

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

PATH

absolute path

A

/home/user/command

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

PATH

env var is set for the system here

A

/etc/profile

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

PATH

can be modified on command line or any other executable sourced script

A

/home/user/.bashrc

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

HISTFILE

command uses this value to display a list of previously run commands

A

history

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

HISTFILE

by default the value for any user will be

A

/home/user/.bash_history

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

HISTFILE

index of current command

A

HISTCMD

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

HISTFILE

when set to ignorespace any command preceeded by blank space with NOT be recorded in history file

A

HISTCONTROL

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

HISTFILE

number of lines that can be used to hold previous commands

default == 500

A

HISTFILESIZE

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

env var change

overwrite

A

Overwrite export VARIABLE=newValue

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

env var change

append

A

Append

export VARIABLE=$VARIABLE:newValue

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