Chapter 8 Flashcards

1
Q

Which of the following process attributes is not inherited to child processes?

A

shell aliases

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

Shell functions defined in a user’s ~/.bashrc are intended for what?

A

interactive shells

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

Which file is executed first by a login shell?

A

/etc/profile

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

Environment variable settings usually go in which files?

A

/etc/profile and ~/.bash_profile

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

Shell aliases usually go in which files?

A

/etc/bashrc and ~/.bashrc

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

Shell functions usually go in which files?

A

/etc/bashrc and ~/.bashrc

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

useradd copies what files into a newly-created home directory?

A

All files in /etc/skel

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

When RPM packages are installed, they might put shell initialization files where?

A

In /etc/profile.d

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