Thursday, January 28, 2016

How to display Distribution Specific Information in Ubuntu?

Here in this blog Linux commands which displays all the information about your operating system(Ubuntu) is shown.The commands are uname & lsb_release.
uname prints the system information like:  kernel name, network node hostname, kernel-version, machine, operating system etc.
While connamd lsb_release prints the distribution specific information. Well you can see the version of distribution during the first boot but this commands has all the information regarding distribution like distributor's id, release number and codename of the recently installed distribution.

To display all information about your system type:
uname -a or uname -all
And your output is like this:
Linux oracle 3.13.0-74-generic #118-Ubuntu SMP Thu Dec 17 22:52:02 UTC 2015 i686 i686 i686 GNU/Linux

 To display the distribution specific information type:

lsb_release -all
This will display distribution specific information like this:
Distributor ID:    Ubuntu
Description:    Ubuntu 14.04.3 LTS
Release:    14.04
Codename:    trusty
 

To display specific information about your system use following parameters with command uname:

-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

To display distribution specific information about your system use following parameters with command lsb_release:

-v, --version
       Show version of LSB against which your current installation is compliant.  Version is expressed as colon separated list of LSB module descriptions.
-i, --id
        Display the distributor's ID.
 
-d, --description
        Display a description of the currently installed distribution.

-r, --release
         Display the release number of the currently installed distribution.

-c, --codename
         Display the code name of the currently installed distribution.

-a, --all
        Display all of the above information.

About Me

authorHello, my name is Jack Sparrow. I'm a 50 year old self-employed Pirate from the Caribbean.
Learn More →