1Z0-821 practice question 19 of 30
What is the output of the following command, if executed using the default shell for the root role account of a standard Live CD Install of Oracle Solaris 11? echo '$SHELL'
Full set: 243 questionsCorrect Answer:
C. $SHELL
Explanation
Single quotes are most strict. They prevent even variable expansion. Double quotes prevent wildcard expansion but allow variable expansion. For example:
#!/bin/sh
echo $SHELL echo "$SHELL" echo '$SHELL' This will print: /usr/bin/bash /usr/bin/bash $SHELL
Keep practicing
Take the free 1Z0-821 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other 1Z0-821 practice questions
- Question 1You created a new zpool. Now you need to migrate the existing ZFS file system from pool1/…
- Question 2User jack on host solaris attempts to use ssh to log in to host oracle and receives this …
- Question 5On which is the open boot prom available?
- Question 7Identify the correct description of an IPS image.
- Question 8Server A, Server B, and Server C are connected to the same network switch and are on the …
- Question 9To help with your troubleshooting, you need to determine the version of the OBP. Which tw…
