Ubuntu: View size of CPU cache through the command-line?



Question:

How do I view the size of my CPU cache using the command-line?

I want to view information on L1, L2 and L3 cache.

Also, would it be possible to ouput only information on cache, so that all other information is filtered out?


Solution:1

lscpu will provide the info you're looking for.

lscpu | grep "cache" to filter out only cache info.

Good luck!


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »