OS515-Workbook6-part2 Flashcards
The bash shell expands certain command line metacharacters before…?
interpreting the command.
Tilde expansion expands tokens that begin with a…?
tilde (~) to users home directories.
Brace expansion expands tokens with …?
braces ({}) into multiple words, each of which contains a single word from the specified list.
mkdir {dir1,dir2,dir3}/{subdir1,subdir2}
mkdir dir1
mkdir dir1/subdir1
mkdir dir1/subdir2
…etc…
Command substitution expands text enclosed within…?
backticks (‘’) or “dollar parenthesis” ($()) into the output produced by the enclosed command.
VAR=COMMAND
FILES=`ls /etc` FILES=$(ls /etc)
Pathname Expansion ("File Globbing") Covered earlier and is also...?
a shell expansion.
Remember that expansion occurs before the program is…?
executed, so the program is given a set of matching files.
Pathname Expansion:
Character * match?
0 or more characters
Pathname Expansion:
Character ? match?
Exactly one characters.
Pathname Expansion:
Character […] match?
Exactly one of the included characters.
Pathname Expansion:
Character [^…]
Exactly one of the excluded characters.
See slide 8 for…?
command line expansion subtleties.
The bash shell internally implements certain simple commands which are closely related to the…?
to the shell’s behavior. These are referred to as builtin commands.
Shell aliases create apparent commands which…?
expand to arbitrary text.
The bash shell prompt can be…?
customized using the PSI variable.
Shell flags modify the …?
bash shell behavior.
Shell options offer more…?
bash shell configuration options.
Slide 11 shows…?
Slide Builtins.
Slide 12 shows…?
Aliases