How to Obtain the Process Privileges of the Current Shell?
-
ppriv $$
-
ps
-
ps -ef
-
prtdiag -v
A
Correct answer
Explanation
The command 'ppriv $$' displays the process privileges of the current shell on Solaris systems. ppriv is the privileged process examination command, and $$ provides the current shell's PID. 'ps' shows process status but not detailed privileges, 'ps -ef' lists all processes, and 'prtdiag -v' displays system diagnostic information. The combination of ppriv with $$ specifically targets privilege information for the current shell.