Home » Oracle » 1z0-821 » Which command would you use from the bash shell to determine the total amount of physical memory installed in your Solaris system (x86 and SPARC)?
Which command would you use from the bash shell to determine the total amount of physical memory installed in your Solaris system (x86 and SPARC)?
A. uname -a
B. prtconf | grep -i memory
C. sysdef | grep -i memory
D. vmstat
E. prtdiag | grep -i memory
Correct Answer: B
Explanation/Reference:
Explanation:
The prtconf command prints the system configuration information. The output includes the total amount of memory, and the configuration of system peripherals formatted as a device tree.
If a device path is specified on the command line for those command options that can take a device path, prtconf will only display information for that device node.
Download Printable PDF. VALID exam to help you PASS.
|
|
Correct answer is : B prtconf works for both SPARC & x86
prtdiag | grep -i memory, doesn’t really display anything for x86. (it works for SPARC, though’)
BE is true:
root@test-lab:~# prtconf | grep -i memory
Memory size: 16384 Megabytes
memory (driver not attached)
virtual-memory (driver not attached)
reboot-memory (driver not attached)
root@test-lab:~# prtdiag | grep -i memory
Memory size: 16384 Megabytes
======================= Physical Memory Configuration ========================
root@test-lab:~#