Check Linux CPU & Memory Info
To view CPU and memory information of a Linux system, you can use the following command:
- View CPU information:
- The lscpu command can provide detailed information about the CPU architecture, such as processor type, number of cores, number of threads, and more.
- You can use the command cat /proc/cpuinfo to view more detailed CPU information, including detailed information for each CPU core.
- View memory information:
- The command “free -h” can be used to display the system’s memory usage, including total memory, used memory, and free memory.
- The command “cat /proc/meminfo” can be used to view more detailed memory information, such as total memory, free memory, cache, and more.