lsb_release: 우분투 버전 확인 :: 행복한 프로그래머

posted by 쁘로그램어 2017. 12. 24. 16:10

우분투(Ubuntu) 버전을 확인하기 위해서 lsb_release 명령을 사용합니다.

LSB가 Linux Standard Base의 약어였는지 오늘 처음 알았네요.

lsb_release 명령은 특정 LSB (Linux Standard Base)의 정보를 제공합니다.


# man lsb_release

NAME

       lsb_release - print distribution-specific information


SYNOPSIS

       lsb_release [options]


DESCRIPTION

       The lsb_release command provides certain LSB (Linux Standard Base) and distribution-specific information.


       If no options are given, the -v option is assumed.


OPTIONS

       The program follows the usual GNU command line syntax, with long options starting with two dashes (`--').

       A summary of options are included below.


       -v, --version

              Show the version of the LSB against which your current installation is compliant.  The version  is

              expressed as a 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.


       -s, --short

              Use  the  short  output  format  for  any  information  displayed.   This format omits the leading

              header(s).


       -h, --help

              Show summary of options.


NOTES

       This is a reimplementation of the lsb_release command provided by the Free Standards Group.  Any bugs are

       solely the responsibility of the author below.


       Detection  of  systems  using  a mix of packages from various distributions or releases is something of a

       black art; the current heuristic tends to assume that the installation is of  the  earliest  distribution

       which is still being used by apt but that heuristic is subject to error.


SEE ALSO

       lsb(8)


AUTHOR

       Chris Lawrence <lawrencc@debian.org>.


# lsb_release 사용 샘플 

$ lsb_release -a

No LSB modules are available.

Distributor ID: Ubuntu

Description: Ubuntu 14.04.5 LTS

Release: 14.04

Codename: trusty 


$ lsb_release -r

Release: 14.04


'리눅스 > ubuntu' 카테고리의 다른 글

apt와 agt-get의 차이  (0) 2017.12.21
Ubuntu(우분투) 설치 후 기본 환경 설정  (0) 2017.12.21