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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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:
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.