Class 16 Quiz Flashcards
What does the ? meta-character match?
any single character
What does the * meta-character match?
zero or more occurrences of any character
What do the [ ] meta-characters match?
a single instance of any character between the brackets
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”?
ls foo?.txt
What is a built-in?
a command whose code is part of the shell and does not exist as an executable file on disc
Name the three ways a shell can be started.
login shell, interactive non-login shell, non-interactive shell
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?
.bash_profile
Where are the startup files located?
in your home directory
What command would you use the find out more about a built-in command?
help
Are the commands in .bash_profile run when you create a subshell using bash?
no