Linux Commands Examples

A great documentation place for Linux commands

uname

print system information


see also : arch

Synopsis

uname [OPTION]...


add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples

0
Uname will give you what kind of linux kernel you use and what your distro is



$ uname -m

x86_64

$ uname -a

Linux YourMachineName 3.8.0-23-generic #34-Ubuntu SMP Wed May 29 20:22:58 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
example added by LeBerger
0
cat /proc/version

## What does it do ?

Linux version and other info

## Output

Linux version 3.2.0-4-amd64 (debian-kernel@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 SMP Debian 3.2.54-2
example added by LeBerger
0
source
            
uname -m
0
source
            
uname -n
0
source
            
uname -rm
0
source
            
uname -a
0
source
            
uname -r # which kernel?

description

Print certain system information. With no OPTION, same as -s.
-a
, --all

print all information, in the following order, except omit -p and -i if unknown:

-s, --kernel-name

print the kernel name

-n, --nodename

print the network node hostname

-r, --kernel-release

print the kernel release

-v, --kernel-version

print the kernel version

-m, --machine

print the machine hardware name

-p, --processor

print the processor type or "unknown"

-i, --hardware-platform

print the hardware platform or "unknown"

-o, --operating-system

print the operating system

--help

display this help and exit

--version

output version information and exit

copyright

Copyright © 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

reporting bugs

Report uname bugs to bug-coreutils[:at:]gnu[:dot:]org
GNU coreutils home page: <http://www.gnu.org/software/coreutils/>
General help using GNU software: <http://www.gnu.org/gethelp/>
Report uname translation bugs to <http://translationproject.org/team/>


see also

arch , uname

The full documentation for uname is maintained as a Texinfo manual. If the info and uname programs are properly installed at your site, the command

info coreutils 'uname invocation'

should give you access to the complete manual.


author

Written by David MacKenzie.

How can this site be more helpful to YOU ?


give  feedback