Lsb release: Difference between revisions

From ICO wiki
Jump to navigationJump to search
No edit summary
Line 17: Line 17:
|'''-v'''
|'''-v'''
|'''--version'''
|'''--version'''
|Show the version of the Linux Standard Base that your system is compliant with. The version is displayed as a colon-separated list of LSB module descriptions.
|show LSB modules this system supports
          
          
|-
|-
|'''-i'''  
|'''-i'''  
|'''--id'''
|'''--id'''
|Display the ID of your Linux distributor. For instance, if you are running Debian, this option will display
|show distributor ID
<br>Distributor ID: Debian.<br/>


|-
|-
|'''-d'''  
|'''-d'''  
|'''--description'''
|'''--description'''
|Display a description of your Linux distribution. For instance, if you are running CentOS 7, this will display something like
|show description of this distribution
Description:
<br>CentOS Linux release 7.3.1611 (Core)<br/>


|-
|-
|'''-r'''  
|'''-r'''  
|'''--release'''
|'''--release'''
|Display the release number of the current operating system. For instance, if you are running Fedora 25, this will output
|show release number of this distibution
<br>Release: 25<br/>


|-
|-
|'''-c'''  
|'''-c'''  
|'''--codename'''
|'''--codename'''
|Display the codename of the current operating system. For instance, if you are running Ubuntu 16.04, this will display
|show code name of this distribution
<font size="2">''Codename: xenial''</font>


|-
|-
|'''-a'''  
|'''-a'''  
|'''--all'''
|'''--all'''
|Display all of the above information. For instance, if you are running Arch Linux, this will display
|show all of the above information
<font size="2">''LSB Version: 1.4''
<p>''Distributor ID: Arch''</p>
<p>''Description: Arch Linux''</p>
<p>''Release: rolling''</p>
<p>''Codename: n/a''</p></font>


|-
|-
|'''-s'''  
|'''-s'''  
|'''--short'''
|'''--short'''
|Use the "short" output format, which omits headers. You can use this in combination with another option. For instance, if you are running Fedora 25, the command
|'''lsb_release -rs'''()
<font size="2">'''lsb_release'''</font>
|show requested information in short format
<br>will display:<br/>
<font size="2">25</font>


|-
|-
|'''-h'''  
|'''-h'''  
|'''--help'''
|'''--help'''
|Display a help message which summarizes these options.
|show this help message and exit
|}
|}



Revision as of 16:41, 18 September 2017

Author

Elizaveta Romanova, A21

.09.2017

About command

The lsb_release command displays LSB (Linux Standard Base) information about your specific Linux distribution. It's a reliable way to get version information about the Linux system you're using.

Syntax

lsb_release  [OPTIONS]

Options

-v --version show LSB modules this system supports
-i --id show distributor ID
-d --description show description of this distribution
-r --release show release number of this distibution
-c --codename show code name of this distribution
-a --all show all of the above information
-s --short lsb_release -rs() show requested information in short format
-h --help show this help message and exit

Installing LSB Core

Ubuntu, Debian

CentOS

Fedora

OpenSUSE

Arch

Other distributions

Examples

Related command