Home » Oracle » 1z0-100 » Which two settings will display the name of the variable and its value?
You want to display the value of a shell variable called service after assigning a value as shown:
SERVICE =ACCT S
Which two settings will display the name of the variable and its value?
A. set | grep service
B. echo $SERVICE
C. env | grep SERVICE
D. env $SERVICE
E. set $SERVICE
Correct Answer: BC
Explanation/Reference:
C: env – set the environment for command invocation
If no utility operand is specified, the resulting environment shall be written to the standard output, with one name= value pair per line.
Download Printable PDF. VALID exam to help you PASS.
|
|