New authorization required for mundane activities

silver.bullet at zoho.com silver.bullet at zoho.com
Mon Sep 28 17:16:00 UTC 2015


On Mon, 28 Sep 2015 12:34:56 -0400, Tom H wrote:
>On Sun, Sep 27, 2015 at 10:22 PM,  <silver.bullet at zoho.com> wrote:
>>
>> # lsb_release -dr
>
>Or simply
>
>cat /etc/os-release
>
>It's something that was put together by systemd upstream but it's
>available on my 12.04 and 14.04 upstart servers so it must be
>available on all supported versions of Ubuntu.

The Ubuntu bug tracker suggests lsb_release. I didn't know
about /etc/os-release, I was only aware of /etc/issue.

/etc/os-release seems to be a common location.

[root at moonstudio ~]# cat /etc/os-release
NAME="Ubuntu"
VERSION="15.10 (Wily Werewolf)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu Wily Werewolf (development branch)"
VERSION_ID="15.10"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
[root at moonstudio ~]# cat /etc/issue     
Ubuntu Wily Werewolf (development branch) \n \l

[root at moonstudio ~]# logout
[rocketmouse at archlinux ~]$ cat /etc/os-release
NAME="Arch Linux"
ID=arch
PRETTY_NAME="Arch Linux"
ANSI_COLOR="0;36"
HOME_URL="https://www.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://bugs.archlinux.org/"

[rocketmouse at archlinux ~]$ cat /etc/issue
Arch Linux \r (\l)

Regards,
Ralf





More information about the ubuntu-users mailing list