-
What does Bash do when it performs history expansion?
it reruns an old command line which it retrieves from the history list
-
What does Bash do when it performs alias substitution?
it replaces the name of the alias with a Unix command
-
Write the command you would use to create the files foo1.txt to foo5.txt
using brace expansion and the
touch
command.
touch foo{1,2,3,4,5}.txt
-
What does Bash do when it performs tilde (~) expansion?
replaces ~ with the absolute address of your home directory or replaces ~UNIX_USERNAME with the absolute address of the home directory of UNIX_USERNAME
-
What does Bash do when it performs parameter and variable expansion?
substitutes the value of a variable or a parameter for the name of the variable or parameter when preceded by a $
-
What does Bash do when it performs arithmetic expansion?
treats the digits inside double parentheses as numbers, performs arithmetic operations on them and substitutes the result of that calculation for the expansion expression
-
What does Bash do when it performs command substitution?
runs the commands inside the parentheses in a subshell and substitutes the output from those commands for the substitution expression
-
What would you write at the command line to define the alias
ll
whose value was
ls -l
?
alias ll='ls -l'
-
Can an alias be made global?
no
-
Can a function be made global?
no