To view CPU, memory, and hard disk size under Linux:
How to view CPUs
1, cat/proc/cpuinfo or more intuitive to view the model of the CPU command: DMESG |grep-i Xeon
Ways to view memory
2. Cat/proc/meminfo or more intuitive command to view memory: free-m
View hard disk size
3, Df-h
Finally, with the top command, you can also see the CPU and memory usage by pressing "1" directly after entering the top command to see the CPU and memory usage clearly.
------------------------------------------------------------
Linux View graphics Information:
lspci | grep -i vga
Using the NVIDIA GPU, you can:
lspci | grep -i nvidia
Linux view nvidia graphics card information and usage
Nvidia comes with a command-line tool to view video memory usage:
nvidia-smi
Table Header Interpretation:
- Fan: Show the fans speed, the value between 0到100%, is the computer's expected speed, if the computer is not cooled by the fan or the fan is broken, display is n/A;
- Temp: The temperature inside the graphics card, the unit is Celsius;
- Perf: Characterizing the performance state, representing the maximum performance from P0 to P12,p0, and P12 representing the state minimum performance;
- PWR: energy consumption indication;
- Bus-id: Related information about the GPU bus;
- DISP.A: is the display active meaning, indicating whether the GPU is initialized;
- Memory usage: usage of memory;
- Volatile Gpu-util: Floating GPU utilization;
- Compute M: Calculation mode;
The processes below shows the memory usage for each process on each GPU.
If you want to use the output video card periodically, you can use the Watch command to achieve:
10 nvidia-smi
The command-line argument-n is followed by the period of execution of the command, in S.
Linux view CPU, memory size