Shell Interview Questions and Answers

 

How will you pass and access arguments to a script in Linux?

Arguments can be passed as:
scriptName "Arg1" "Arg2"."Argn" and can be accessed inside the script as $1 , $2 .. $n

Posted by:Richards