Oracle
1Z0-821 · Question #135
What is the output of the following command, if executed using the default shell for the root account of a standard Live CD Install of Oracle Solaris 11? echo '$SHELL'
The correct answer is C. $SHELL. Single quotes are most strict. They prevent even variable expansion. Double quotes prevent wildcard expansion but allow variable expansion. For example: This will print:
Administering Oracle Solaris 11 OS on a Single System
Question
What is the output of the following command, if executed using the default shell for the root account of a standard Live CD Install of Oracle Solaris 11? echo '$SHELL'
Options
- A/usr/bin/bash
- B/usr/bin/ksh
- C$SHELL
- Dthe PID for the current shell
How the community answered
(33 responses)- A15% (5)
- B6% (2)
- C76% (25)
- D3% (1)
Explanation
Single quotes are most strict. They prevent even variable expansion. Double quotes prevent wildcard expansion but allow variable expansion. For example: This will print:
Topics
#shell quoting#single quotes#variable expansion#echo command
Community Discussion
No community discussion yet for this question.