105.1 Customize And Use The Shell Environment Flashcards

1
Q

List all shell options.

A

set -o

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

Turn on the allexport shell option just for this session.

A

set -o allexport

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

Turn off the noclobber shell option just for this session.

A

set +o noclobber

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

Turn on the noglob shell option permanently for all shell logins.

A

vi ~/.profile

set -o noglob

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

Display function names and contents.

A

declare -f

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

Display function names.

A

declare -F

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

A more concise form of if/then statements using && or ||.

A

Command line lists

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

Command to remove an alias.

A

unalias [name]

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

Remove declared functions and shell variables.

A

unset [name]

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

The primary prompt environment variable for setting the prompt value and formatting.

A

PS1

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

Run ls without an alias.

A

\ls

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

Location of user profile variables.

A

~/.bash_profile

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

Location of user login commands.

A

~/.bash_login

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

Location of global profile variables like $PATH.

A

~/.profile

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

Location of shell variables.

A

~/.bashrc

Not a login script, runs when starting a new shell.

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

Full path to the first login script to run.

A

/etc/profile

17
Q

Full path to the configuration file for ~/.bashrc.

A

/etc/bash.bashrc

18
Q

Location of the standard Bash logout script.

A

~/.bash_logout