CompTIA Linux+ (XK0-004) — Question 41
An administrator wants to know the amount of memory installed on a Linux server. Which of the following commands can be used to accomplish this task?
Answer options
- A. cat /sys/proc/meminfo
- B. cat /proc/meminfo
- C. cat /proc/sys/meminfo
- D. cat /sys/meminfo
Correct answer: B
Explanation
The correct command is 'cat /proc/meminfo', as this file contains detailed information about the system's memory usage. The other options either reference incorrect file paths or do not exist, making them invalid for retrieving memory information.