Lesson 13: Working with Bash Scripts Flashcards

1
Q

Where are the global login scripts set?

A

/etc
/profile -
/profile.d is a subdirectory, and shell script

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

Where can bash scripts be found for a single user?

A

.profile script run when user logins
.bash_profile script run when bash is ran
.bash_logouts
.bashrc configurations for bash sessions

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

How do you call a variable?

A

use $

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

How do you make a variable global?

A

export

set -o allexport will set all varibles global

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