Can any body tell me what this command means?
selfDir=$(cd "$(dirname "$0")"; pwd) ?
I know
$0= running script namepwd= current working dircd= to change dir
What I need is what is dirname? and what ? means at end to make this line completely understandable.