Answer to Question #277011 in UNIX/Linux Programming for Himanshi

Question #277011

Write a script which does ls to a non-existent file. Display an exit status of the

previous command. Now create the file and again display the exit status


1
Expert's answer
2021-12-13T00:03:10-0500
ls file
echo $?
touch file 
echo $?

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS