2.6 Flashcards

1
Q

A shell that runs after the user successfully logs in using a user ID and password.

A

login shell

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

A shell that is opened without requiring the user to authenticate with a user ID and password

A

Non-login shell

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

A special file containing a script that is run during a shell startup. its how the user gets to the interface

A

shell configuration file

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

There are two shell types that determine which shell configuration files are executed.

A

login shells and Non login shells

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

login shells will run after using one of the following su commands

A

su -l

sudo -i

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

non login shells will open after executing one of the following commands

A

su

sudo

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

one way to determing the shell type is to run ________ commmand

A

echo $0

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

if the echo 0$ returns a dash followed by the name of the shell then it is ________ shell

A

login

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

/etc/bashrc or /etc/bash.bashrc is run by

A

all users non login shell

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

~/.bashrc is run by

A

the specified user and its a non login

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

/etc/profile is run by

A

all users login shell

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

*.sh files in the /etc/profile.d/derectory is run by

A

all users login shell

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

~/.bash_profile is run by

A

the specified user login shell

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

~/.bash.login s run by

A

the specified user login shell

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

~/.profile is run by

A

the specified user login shell

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

~/.bash_logout is run by

A

the specified user only login shell