Class 16 Flashcards

1
Q

What does the ? meta-character match?

A

any single character

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

What does the * meta-character match?

A

Zero or more occurrences of any character

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

What do the [ ] meta-characters match?

A

a single instance of any character between the brackets

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

What command would you use to see all files in your current directory whose name began with “foo”, followed by another letter, followed by “.txt”?

A

ls foo?.txt

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

What do you call a command whose code is part of the shell and does not exist as an executable file on disc?

A

a built-in

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

Name the three ways a shell can be started.

A

login shell, interactive non-login shell, non-interactive shell

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

What is the name of the startup file that we will be using in this course, which contains commands that are run when you first log in?

A

.bash_profile

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

Where are the startup files located?

A

in your home directory

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

What command would you use the find out more about a built-in command?

A

help

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

Are the commands in .bash_profile run when you create a subshell using bash?

A

no

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