InterviewSolution
| 1. |
How to get a list of currently running processes and resource utilization in Linux? |
|
Answer» Top is the command used to get the list of running processes and resource utilization (RAM or CPU usage). It GIVES all the information about each process running on the host :
Sample Output : PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND Most commonly used options with the top command are below – top -u -> Process by a user. top – i -> exclude idle tasks top -p -> Show a particular process |
|