Question: 1 . Charlie needs to write a conditional statement to test if a file exists and if it is , in fact a file. Which

1. Charlie needs to write a conditional statement to test if a file exists and if it is, in fact a file. Which of the lines of code do this?
Group of answer choices
if [-e file]
if [-f file ]
if [-d file ]
if [-x file ]
2. Elliot would like his script to return a value of 2 if the script fails. Which statement does this?
Group of answer choices
#!
while
$1
exit
3. Joey wants his script, myscript, to run for the next 4 days at noon which is the best deferred schedule command for this?
Group of answer choices
for i in {1..4} do at noon < myscript
at noon +4 days

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!