1

I know that the lsb_release command echoes the Ubuntu version I'm currently using. But is there a command that prompts the system flavor (Ubuntu, Lubuntu, Kubuntu, Edubuntu, etc.) I'm in?
Like:

$ the_command
Ubuntu

If I'm using Ubuntu or

$ the_command
Lubuntu

If I'm using Lubuntu?

2
  • Try cat /etc/os-release May 9, 2016 at 12:01
  • Does lsb_release -i | cut -f2 suffice?
    – Runium
    May 9, 2016 at 12:28

2 Answers 2

1

Try lsb_release -a

$lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 8.4 (jessie)
Release:    8.4
Codename:   jessie
1
$ lsb_release -si
Ubuntu

should cut it.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .