Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Suppose you were to type the following commands at the command line (from any location in your directory) 1 >mkdir expansions 3 >$ touch a{b,c,d)e
Suppose you were to type the following commands at the command line (from any location in your directory) 1 >mkdir expansions 3 >$ touch a{b,c,d)e z{a,)(p,t) 4 unalias lsh 5 > alias lsh 'ls-a 6 > alias lhl-'lsh-l' 9 >echo "*[td]*> list 10 cp ../testFiles/test 11 >$ rm *e* What follows are three commands. For each one, you may assume they were entered as command # 12, A partial list of expansions has been provided for the first 2 problems. Your job is to fill in the missing expansion types and results of applying the expansions. Sometimes you will have to fill one or the other sometimes you'll have to fill in both. For problem 3 you will have to fill in every step lhl cat ? Result lsh -l cat ???? ls -a - cat ???? (Applies expansions within command) Expansion Command 12: Expansion Alias Command Result ls -a -1 (Runs the command) ls -a -1 Final Command !1 :0 sfiles1 Result Command 12: Expansion rm $filesl FINAL COMMAND: Filename ETm You should list each expansion step as shown in the previous examples. You "may not. need every line that has been provided (but you might). PLEASE INDICATE YOUR FINAL COMMAND Command 12:!4:$ 'echo $files2 >!10:1:t Expansion Result History BONUS POINT. After the command in the third exercise, what is the result of running more test? Include your answer below: Suppose you were to type the following commands at the command line (from any location in your directory) 1 >mkdir expansions 3 >$ touch a{b,c,d)e z{a,)(p,t) 4 unalias lsh 5 > alias lsh 'ls-a 6 > alias lhl-'lsh-l' 9 >echo "*[td]*> list 10 cp ../testFiles/test 11 >$ rm *e* What follows are three commands. For each one, you may assume they were entered as command # 12, A partial list of expansions has been provided for the first 2 problems. Your job is to fill in the missing expansion types and results of applying the expansions. Sometimes you will have to fill one or the other sometimes you'll have to fill in both. For problem 3 you will have to fill in every step lhl cat ? Result lsh -l cat ???? ls -a - cat ???? (Applies expansions within command) Expansion Command 12: Expansion Alias Command Result ls -a -1 (Runs the command) ls -a -1 Final Command !1 :0 sfiles1 Result Command 12: Expansion rm $filesl FINAL COMMAND: Filename ETm You should list each expansion step as shown in the previous examples. You "may not. need every line that has been provided (but you might). PLEASE INDICATE YOUR FINAL COMMAND Command 12:!4:$ 'echo $files2 >!10:1:t Expansion Result History BONUS POINT. After the command in the third exercise, what is the result of running more test? Include your answer below
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started