Which Korn shell syntax is used to assign the directory of the called script to a variable called mydir?

Which Korn shell syntax is used to assign the directory of the called script to a variable called mydir?
A. mydir=$(dirname $0)
B. $mydir=$(dirname $0)
C. mydir=${dirname $@}
D. mydir=$(dirname $?)

Download Printable PDF. VALID exam to help you PASS.

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.