music
OSdata.com: programming text book 

OSdata.com

uname

summary

    This subchapter looks at uname, a UNIX (and Linux) command.

    uname returns some basic information about your system.

free book on UNIX/Linux System Administration

Teach Yourself UNIX/Linux System Administration and Shell Programming

free computer programming text book project

table of contents
If you like the idea of this project,
then please donate some money.
more information on donating

Google

uname

    This subchapter looks at uname, a UNIX (and Linux) command.

    uname is used to report system information.

    On a Linux machine you can find all of this same information in the appropriate files in the /proc filesystem, but uname utility may be easier and faster to use.

basic use

    Type the uname without any options to get the kernel name.

    $ uname
    Darwin

system

    Use the -s option to get the operating system name.

    $ uname -s
    Darwin

release info

    Use the -r option to get the operating system release information.

    $ uname -r
    9.8.0

operating system version

    Use the -v option to get the operating system version.

    $ uname -v
    Darwin Kernel Version 9.8.0: Wed Jul 15 16:57:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_PPC

machine

    Use the -m option to get the machine hardware name.

    $ uname -m
    Power Macintosh

    When running on an Intel (or compatiable) processor, you may also get an indication as to whether it is a 32-bit or 64-bit system.

    $ uname -m
    x86_64

processor

    Use the -p option to get the machine processor architecture type.

    $ uname -p
    powerpc

network node

    Use the -n option to get the network node host name (node name).

    $ uname -n
    local

    You can also use the hostname command to get the exact same answer.

all

    Use the -a option to get all of the information available from this command.

    $ uname -a
    Darwin admins-power-mac-g5.local 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:57:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_PPC Power Macintosh

nonstandard

    There are a few additional nonstandard options that may be available. Even if available, they may produce unknown as their output. because these are nonstandard options, you should avaoid using them in a script.

    Use the -i option to get hardware platform information.

    $ uname -i
    x86_64

    Use the -o option to get he operating system name.

    $ uname -o
    GNU/Linux

CentOS and Red hat Enterprise

    You ca find the distribution version number for CentOS or red hat Enterprise Linux with the following command:

    $ cat /etc/redhat-release
    CentOS release 5.4 (Final)

other

    On November 8, 2010, Ramesh Natarajan named this the number 37 most frequently used UNIX/Linux command at this web page 50 Most Frequently Used UNIX / Linux Commands (With Examples).

    In June 2009, Ken Milberg named this command as one of the Top 50 universal UNIX commands at this web page Top 50 Universal INIX commands. Note that this web page requires agreeing to be spammed before you can read it.


comments, suggestions, corrections, criticisms

please contact us

your name:
email address:
phone number:
message:

free music player coding example

    Coding example: I am making heavily documented and explained open source code for a method to play music for free — almost any song, no subscription fees, no download costs, no advertisements, all completely legal. This is done by building a front-end to YouTube (which checks the copyright permissions for you).

    View music player in action: www.musicinpublic.com/.

    Create your own copy from the original source code/ (presented for learning programming).


return to table of contents
free downloadable college text book
free downloadable system administrator and shell programming book

view text book
HTML file

Because I no longer have the computer and software to make PDFs, the book is available as an HTML file, which you can convert into a PDF.

previous page next page
previous page next page

free book on UNIX/Linux System Administration

Teach Yourself UNIX/Linux System Administration and Shell Programming

free computer programming text book project

Building a free downloadable text book on computer programming for university, college, community college, and high school classes in computer programming.

If you like the idea of this project,
then please donate some money.

send donations to:
Milo
PO Box 1361
Tustin, California 92781

Supporting the entire project:

    If you have a business or organization that can support the entire cost of this project, please contact Pr Ntr Kmt (my church)

more information on donating

Some or all of the material on this web page appears in the
free downloadable college text book on computer programming.


Google


Made with Macintosh

    This web site handcrafted on Macintosh computers using Tom Bender’s Tex-Edit Plus and served using FreeBSD .

Viewable With Any Browser


    †UNIX used as a generic term unless specifically used as a trademark (such as in the phrase “UNIX certified”). UNIX is a registered trademark in the United States and other countries, licensed exclusively through X/Open Company Ltd.

    Names and logos of various OSs are trademarks of their respective owners.

    Copyright © 2012 Milo

    Created: February 16, 2012

    Last Updated: October 15, 2012


return to table of contents
free downloadable college text book
free downloadable system administrator and shell programming book

previous page next page
previous page next page