Question 17 (2 points) Assume the current working directory is home directory(/H
ID: 3603934 • Letter: Q
Question
Question 17 (2 points) Assume the current working directory is home directory(/Home), which contains only two files HW3.pdf and q1.sh The content in q1.sh is displayed below: if [ -eH4.pdf ] then echo The full path f HM4.pdf is pwd else echo HW4 does not exist in current directory. fi What will be the output after executing following command? $./q1.sh O a) The full path of Hw4.pdf is/Home O b) Hw4 does not exist in current directory O c) The full path of HW4.pdf is pwd O d) The full path of Hw4.pdf is /Hw4.pdf SaveExplanation / Answer
Question 17
Since the if condition turns out to be false , the else statement gets executed and hence the output is as stated in option b)
Question 18
Line 5 : Syntax error: Unexpected end of file
Hence, option d)
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.