Environment Variables Flashcards

(41 cards)

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?

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
/bin/bash (shell) is stored in wich env?
BASH and SHELL
26
Type of cpu installed on your system
CPU
27
where your x-windows commands should be sent
DISPLAY
28
name of the file bash read to configure teh environment
ENV
29
UID of the current user
EUID
30
stores path to the file keeping bash history
HISTFILE
31
amount of commands to store in histoyr
HISTSIZE
32
path to current user's home
HOME
33
stores username of current user
LOGNAME
34
/var/spool/mail/username OR /var/mail/username
MAIL
35
path to system's 'man'
MANPATH
36
prior currenty directory
OLDPWD
37
the type of os being run
OSTYPE
38
list of dirs to be searched when running a command
PATH
39
stores values to be used to create shell prompt
PSI
40
current dir
PWD
41
username of current uzer
USER or USERNAME