Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
so whats the difference between thees options ? all of them show one thing .
None. All they do is select different parts of the system version string (uname -a).
It is a Red Hat naming convention that puts the X86-64 or whatever into that string. Some information (like node name) do come from other areas, but most of the info is optional and up to the person configuring the kernel. Cat the file /proc/version for a lot of additional information too. Including the host the kernel was compiled on, when, GCC version used,...
The kernel Makefile by default uses various locations to build up the full string:
And the EXTRAVERSION is optional. A lot of the specification can be set at the very beginning of the kernel Makefile. From an older vanilla kernel (3.9.0) the Makefile has:
Code:
VERSION = 3
PATCHLEVEL = 9
SUBLEVEL = 0
EXTRAVERSION =
NAME = Unicycling Gorilla
The suffix on uname -r is taken from the kernel's LOCALVERSION= string, specified in .config (in my case '-custom', in yours '-generic'.
Stock Slackware kernels leave that blank (as can be seen on brian's post above).
I suspect schneidz's are all "x86_64" because he's using virtualisation rather than real hardware, so they're really not a good example.
-i and -p will depend on your processor vendor and chip.
-m will give you x86_64 for an "AMD64"/"Intel 64" processor, and is the one you should be checking.
The -i and -p (and also -o) options aren't in the POSIX standard. Different distros can and do patch these options in different ways to provide some form of output (e.g. Slackware uses info from /proc/cpuinfo), so IMO those options are useless.
uname -m shows the machine architecture the kernel believes it is running on, and according to stackoverflow, if the kernel is 32-bit it will report a 32-bit architecture even if it is running on 64-bit hardware.
definitely. He is using Fedora 15. Here is a full string from Fedora 16:
Code:
$ uname -a
Linux panther 3.6.11-4.fc16.x86_64 #1 SMP Tue Jan 8 20:57:42 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
Note the multiple occurrences of x86_64. Each one is a different field extracted by uname.
What is shown is entirely up to the person that compiles the kernel. Different distributions have different standards, so what you get will be different.
definitely. He is using Fedora 15. Here is a full string from Fedora 16:
Code:
$ uname -a
Linux panther 3.6.11-4.fc16.x86_64 #1 SMP Tue Jan 8 20:57:42 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
Note the multiple occurrences of x86_64. Each one is a different field extracted by uname.
What is shown is entirely up to the person that compiles the kernel. Different distributions have different standards, so what you get will be different.
What is shown is entirely up to the person that compiles the kernel. Different distributions have different standards, so what you get will be different.
Unlike other distros slackware doesn't meddle with things unnecessarily. We see what upstream intended. I'm not surprised that Fedora shows something else. They mess with everything.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.