Env Variables Flashcards

1
Q

printenv

A

Prints all environment variables

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

printenv HOME

A

Prints the value of Home

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

echo $HOME

A

Prints the valur

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

Export VAR=“Value”

A

How to set an env variable

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

unset VAR

A

Gets rids of an env variable

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

How to set an env variable permanently

A

Add it to .bash-profile

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