1.

Which symbol is used for assigning a value to variables?(a) $(b) &(c) =(d) @I have been asked this question in an internship interview.My question is taken from Command Substitution and Shell Variables topic in section The Shell of Unix

Answer»

Correct answer is (c) =

EXPLANATION: The SHELL supports variables that are useful both in the command line and shell SCRIPTS. These variables are called shell variables like pwd.A variable ASSIGNMENT is of the form variable=value(no SPACES around =). For example,



Discussion

No Comment Found

Related InterviewSolutions