Environment Variables Flashcards

1
Q

BASH and SHELL

A

/bin/bash (shell)

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

CPU

A

The type of cpu installed on your system

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

DISPLAY

A

Where your x-windows commands sholdub e sent (video card monitor)

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

ENV

A

name of the file bash read to configure teh environment (defualt /etc/bash.bashrc)

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

EUID

A

The UID of the current user

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

HISTFILE

A

stores number of commands saved in command history file (default ~/.bash_history)

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

HISTSIZE

A

the amount of commands stored in history (default 1000)

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

HOME

A

path to current user’s home directory

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

HOST and HOSTNAME

A

what it says hostname of system

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

LOGNAME

A

stors username of current user

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

MAIL

A

/var/spool/mail/username OR /var/mail/username

where the mail for the current user is

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

MANPTH

A

path to the systems ‘man’ program

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

OLDPWD

A

prior current directory

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

OSTYPE

A

the type of OS being run (Linux)

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

PATH

A

list of directorys to be searched when running a command prompt

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

PSI

A

stores variales used to create shell prompt

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

PWD

A

the current directory

18
Q

USER and USERNAME

A

the username of teh current user

19
Q

How to display all environment vairables?

A

env

20
Q

How to set the value of a variable

A

VARIABLE=value

21
Q

how to APPEND to a variable? (like PATH

A

VAR=$VARnewstuff

PATH=$PATH:/var/opt

22
Q

change a variable so that its available to all login shells??

A

export VAR=value

export VAR=$VARappended value

23
Q

how to make custom env super persistant even when system shuts down

A

export in a .bash_profile.

24
Q

make every user have a custom env variable

A

add a variable to the global .bash_profile
In /etc/profile

!! always be careful when configuring a global etc file

25
Q

/bin/bash (shell) is stored in wich env?

A

BASH and SHELL

26
Q

Type of cpu installed on your system

A

CPU

27
Q

where your x-windows commands should be sent

A

DISPLAY

28
Q

name of the file bash read to configure teh environment

A

ENV

29
Q

UID of the current user

A

EUID

30
Q

stores path to the file keeping bash history

A

HISTFILE

31
Q

amount of commands to store in histoyr

A

HISTSIZE

32
Q

path to current user’s home

A

HOME

33
Q

stores username of current user

A

LOGNAME

34
Q

/var/spool/mail/username OR /var/mail/username

A

MAIL

35
Q

path to system’s ‘man’

A

MANPATH

36
Q

prior currenty directory

A

OLDPWD

37
Q

the type of os being run

A

OSTYPE

38
Q

list of dirs to be searched when running a command

A

PATH

39
Q

stores values to be used to create shell prompt

A

PSI

40
Q

current dir

A

PWD

41
Q

username of current uzer

A

USER or USERNAME