Environment Variables in Linux Flashcards

1
Q

What is a environment variables?

A

It is a variable that is accesible during the entire session in the shell.

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

What is the command to see the list of the environment variables?

A

env

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

How is displayed the SSH_CONNECTION environment variable?

A

SSH_CONNECTION=source Port Destination Port

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

What is the command to create a new variable?

A

export new_variable_name=VALUE

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