From the course: Linux Performance Tuning

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

/proc/cpuinfo

/proc/cpuinfo - Linux Tutorial

From the course: Linux Performance Tuning

Start my 1-month free trial

/proc/cpuinfo

- [Narrator] So let's do a MORE on PROC CPUINFO. Alright so I was just an ordinary user there and we see information here including all kinds of flags about what that CPU can do, and we see it's an Intel i7 at 3.10 Ghz. That's a PROC file so more doesn't know how big it is so that's why it says 0%, and I can page through this. So one thing we could do is we could GREP the word processor and PROC CPUINFO. And we find out we have four. So sometimes that's kind of handy. Now let's try the command LSHW. We got some sort of message up there and then it says output may be incomplete or inaccurate, you should run this program as super-user. And I'm not wearing my big 'S' shirt but I'm going to try this again, SUDO LSHW. And there we get the list and let's try that again, piped into MORE. We get all kinds of information. Instead of more, if we pipe it into WORDCOUNT minus L to count the number of lines of output, I got 427 lines of output so there's quite a bit of stuff you can get from LSHW.…

Contents