My Linux machine reports "uname -a" outputs as below:
[root@tom i386]# uname -a
Linux tom 2.6.9-89.ELsmp #1 SMP Mon Apr 20 10:34:33 EDT 2009 i686 i686 i386 GNU/Linux
[root@tom i386]#
As per man page of uname, the entries "i686 i686 i386" denotes:
- machine hardware name (i686)
- processor type (i686)
- hardware platform (i386)
Additional information:
[root@tom i386]# cat /proc/cpuinfo
<snip>
vendor_id : GenuineIntel
CPU family : 6
model : 15
model name : Intel(R) Xeon(R) CPU 5148 @ 2.33 GHz
stepping : 6
CPU MHz : 2328.038
cache size : 4096 KB
</snip>
Just to add, why I am interested to know it. When I build an RPM on this machine, I found two directories under RPM directory, i386
and i686
.
So if I want to automate the copying of a generated RPM to a location, which directory should I specify in the shell script? I am using uname -p
which gives i686
but RPM generated i386
.