LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   What does uname return on different architectures? (https://www.linuxquestions.org/questions/mandriva-30/what-does-uname-return-on-different-architectures-922669/)

towheedm 01-07-2012 10:26 PM

What does uname return on different architectures?
 
I am looking to find out what "uname" returns on different architectures running Mandriva.

Specifically, I'm interested in the X86 and X86_64 arches with any kernel versions but any other arch would be appreciated.

So could you post the output from:
Code:

uname -a
uname -m
uname -i

I have an X86 machine and so cannot test for other arches.

I am writing the 3rd Edition of my "Definitive Guide to Theming GRUB2" which now includes Mandriva 2011 and this info will help me greatly.

Thank you all in advance.

weibullguy 01-08-2012 08:22 AM

I don't mind helping. Here is the information for my machines. Hope it helps. All machines Slackware-13.37.

Machine: Aragorn
uname -a: Linux aragorn 2.6.37.6 #3 SMP Sat Apr 9 22:49:32 CDT 2011 x86_64 AMD Athlon(tm) II X3 445 Processor AuthenticAMD GNU/Linux
uname -m: x86_64
uname -i: AuthenticAMD

Machine: Frodo
uname -a: Linux frodo 2.6.37.6 #3 SMP Sat Apr 9 22:49:32 CDT 2011 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 5600+ AuthenticAMD GNU/Linux
uname -m: x86_64
uname -i: AuthenticAMD

Machine: Gandolf
uname -a: Linux gandolf 2.6.37.6 #3 SMP Sat Apr 9 22:49:32 CDT 2011 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ AuthenticAMD GNU/Linux
uname -m: x86_64
uname -i: AuthenticAMD

Machine: Gimli
uname -a: Linux gimli 2.6.37.6 #3 SMP Sat Apr 9 22:49:32 CDT 2011 x86_64 AMD Sempron(tm) Processor 3000+ AuthenticAMD GNU/Linux
uname -m: x86_64
uname -i: AuthenticAMD

Machine: Legolas
uname -a: Linux legolas 2.6.37.6 #3 SMP Sat Apr 9 22:49:32 CDT 2011 x86_64 AMD Athlon(tm) II X3 440 Processor AuthenticAMD GNU/Linux
uname -m: x86_64
uname -i: AuthenticAMD

Machine: Treebeard
uname -a: Linux treebeard 2.6.37.6 #3 SMP Sat Apr 9 22:49:32 CDT 2011 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ AuthenticAMD GNU/Linux
uname -m: x86_64
uname -i: AuthenticAMD

bathory 01-08-2012 08:50 AM

Hi,

Following is the data of various servers in our network.
I've replaced hostname with XXXX because in some of them there was cited the FQDN.
Also I've added the cpu type for those distros that it wasn't obvious.

Slackware64 current
Code:

Linux XXXX 3.2.0 #1 SMP Fri Jan 6 12:35:59 EET 2012 x86_64 Intel(R) Core(TM)2 CPU          6400  @ 2.13GHz GenuineIntel GNU/Linux
x86_64
GenuineIntel

Slackware current
Code:

Linux XXXX 3.2.0 #1 SMP Thu Jan 5 11:48:29 EET 2012 i686 Intel(R) Pentium(R) 4 CPU 2.53GHz GenuineIntel GNU/Linux
i686
GenuineIntel

Slackware 11.0
Code:

Linux XXXX 2.6.20.21 #1 Mon Apr 7 13:19:17 EEST 2008 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz GenuineIntel GNU/Linux
i686
GenuineIntel

Ubuntu 10.01 LTS (Intel(R) Core(TM) i5-2300)
Code:

Linux XXXX 2.6.35-22-server #35-Ubuntu SMP Sat Oct 16 22:02:33 UTC 2010 x86_64 GNU/Linux
x86_64
unknown

Centos 5.5 (Intel(R) Xeon(R) CPU E5335 @ 2.00GHz)
Code:

Linux XXXX 2.6.18-164.6.1.el5.centos.plus #1 SMP Wed Nov 4 09:31:39 EST 2009 x86_64 x86_64 x86_64 GNU/Linux
x86_64
x86_64

RHEL 5.2 (Intel(R) Pentium(R) 4 CPU 2.40GHz)
Code:

Linux XXXX 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:12 EDT 2008 i686 i686 i386 GNU/Linux
i686
i386

Bonus:

Solaris 8 sparc
Code:

SunOS XXXX 5.8 Generic_108528-22 sun4u sparc SUNW,UltraAX-i2
sun4u
SUNW,UltraAX-i2

Regards

RockDoctor 01-08-2012 09:45 AM

Fedora Rawhide x86_64 (AMD 5400+)
Code:

~$ uname -a
Linux Pyrope 3.2.0-2.fc17.x86_64 #1 SMP Thu Jan 5 02:23:28 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
~$ uname -m
x86_64
~$ uname -i
x86_64


towheedm 01-08-2012 10:13 AM

Thanks for the replies.

I posted on the Mandriva forums since I'm interested in what Mandriva returns, expecially for the hardware platform (uname -i). While Debian and Debian-based distros returns 'unknown', on my machine Mandriva returns 'i386'. I'm interested in what it returns for X86_64 machines.

I would like to use the return value in some commands using command substitution, but it will only work properly if the return value is 'i386' for X86 and 'X86_64' for X86 64bits machines. If it does not, then I cannot use the command substitution method and it would be left to the user to supply the correct value.

Again, thanks.

mecelec415 01-08-2012 06:35 PM

Mageia
Code:

$ uname -a
Linux localhost 2.6.38.8-desktop-9.mga #1 SMP Tue Dec 20 09:45:44 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

$ uname -m
x86_64

$ uname -i
x86_64


Wayne Sallee 01-12-2012 05:02 PM

[user@localhost ~]$ uname -a
Linux localhost 2.6.33.7-desktop-2mnb #1 SMP Mon Sep 20 18:19:20 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux
[user@localhost ~]$

[user@localhost ~]$ uname -m
x86_64
[user@localhost ~]$

[user@localhost ~]$ uname -i
x86_64
[user@localhost ~]$


That's Mandriva 64 bit running inside virtualbox.

Wayne Sallee
Wayne@WayneSallee.com

frankbell 01-12-2012 09:32 PM

Dell Dimension 4700 desktop with Debian Squeeze

Code:

uname -a
Linux tuna 2.6.32-5-686 #1 SMP Mon Dec 26 16:19:07 UTC 2011 i686 GNU/Linux
uname -m
i686
uname -i
unknown

Dell 1545n laptop with Slackware-Current:

Code:

uname -a
Linux hammerhead 2.6.38.7-smp #2 SMP Sat May 21 23:13:29 CDT 2011 i686 Genuine Intel(R) CPU            585  @ 2.16GHz GenuineIntel GNU/Linux
uname -m
i686
uname -i
GenuineIntel



All times are GMT -5. The time now is 02:52 PM.