[CentOS] Cents OS from Bash Shell

Mike Burger mburger at bubbanfriends.org
Thu Apr 25 12:53:23 UTC 2013


> On 25 April 2013 13:30, Mike Burger <mburger at bubbanfriends.org> wrote:
>
>> > On Thu, 2013-04-25 at 13:04 +0100, Adekoya Adekunle wrote:
>> >> I want to know the right command to type from a bash shell so that i
>> can
>> >>    1) Check the version of my cent os
>> >
>> > lsb_release -a
>>
>> >From the question, he wants to know the version of CentOS, not the LSB
>> info.
>>
>> rpm -q centos-release
>
>
> lsb_release gives the version of CentOS.
>
> $ lsb_release -a
> LSB Version:
> :core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
> Distributor ID: CentOS
> Description: CentOS release 5.8 (Final)
> Release: 5.8
> Codename: Final
>

So it does...I neglected the -a when I ran it. Thank you.



More information about the CentOS mailing list