Multiple choice technology operating systems

How to Obtain the Process Privileges of the Current Shell?

  1. ppriv $$
  2. ps

  3. ps -ef

  4. prtdiag -v

Reveal answer Fill a bubble to check yourself
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.