A system administrator wants to view all running processes on the system in real time, to find out
what RAM has been allocating to each process. What system command should be used?
A.
ps –ef
B.
ps ax
C.
top
D.
meminfo
Explanation:
top – display Linux tasks
The top program provides a dynamic real-time view of a running system.
It candisplaysystem summary information as well as a list of tasks
currently being managed by the Linux kernel. The types of system summary information shownand the types, order and size of information
displayed for tasks are all user configurable and thatconfiguration
can be made persistent across restarts.
Incorrect:
Not A, Not B:
ps displays information about a selection of the active processes.
To see every process on the system using standard syntax:
ps -e
ps -ef
ps -eF
ps -ely
To see every process on the system using BSD syntax:
ps ax
ps axu
Not D:meminfo – provide information about memory
The meminfo() function provides information about virtual and physical
memory particular to the calling process. The user or developer of
performance utilities can use this information to analyze system memory
allocations and develop a better understanding of the factors affectingapplication performance.