Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I kept bumping into it all the time, only now when I need it I can't find it anywhere! What architecture is the kernel of my machine?

2.6.18-194.el5

share|improve this question
    
runnign uname with the -a flag should give you more information uname -a gives me Linux pc-name 2.6.35-23-generic #41~lucid1-Ubuntu SMP Thu Dec 2 22:30:17 UTC 2010 i686 GNU/Linux –  crasic Aug 10 '11 at 23:43
    
it sure did - make that official, i'll take it –  kellogs Aug 10 '11 at 23:51
add comment

1 Answer

up vote 1 down vote accepted

running uname with the -a flag should give you more information

uname -a gives me

Linux pc-name 2.6.35-23-generic #41~lucid1-Ubuntu SMP Thu Dec 2 22:30:17 UTC 2010 i686 GNU/Linux

If you look around in the uname man pages There are other flags that will let you extract the arch only.

uname -m (for machine) gives me i686 although not all of the flags will give you meaningful results on all systems, uname -i and uname -p (for "hardware platform" and "processor" )both give me unkown if you need to do it programmatically, you will probably be better off parsing the uname -a output.

share|improve this answer
    
want some more rep ? i have just popped up another question around here :D –  kellogs Aug 10 '11 at 23:56
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.