Results 1 to 4 of 4

Thread: How to tell Ubuntu from Ubuntu 2D using Terminal Commands Only?

  1. #1
    Join Date
    Jul 2012
    Location
    Oklahoma, USA
    Beans
    Hidden!

    How to tell Ubuntu from Ubuntu 2D using Terminal Commands Only?

    Hopefully this is a question with a simple answer...

    I'm trying to think of a terminal command that will allow me tell if I'm logged in to Ubuntu or Ubuntu 2D.

    I tried...

    Code:
    lsb_release -a
    and

    Code:
    uname -a
    but they appear to both return identical results in both Ubuntu and Ubuntu 2D.

    Is there a simple command that has a different output depending on which environment I'm logged into?

    Thanks.
    Last edited by Petro Dawg; September 27th, 2013 at 01:26 AM.
    Who's Awesome? You're Awesome.

  2. #2
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    7,372
    Distro
    Lubuntu 14.04 Trusty Tahr

    Re: How to tell Ubuntu from Ubuntu 2D using Terminal Commands Only?

    Petro Dawg; Hey ...

    this:
    Code:
    echo $DESKTOP_SESSION
    output:
    12.04 3D =>ubuntu3d is reported
    12.04 2D =>ubuntu2d is reported

    hope that helps
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubutu'n !

  3. #3
    Join Date
    Jul 2012
    Location
    Oklahoma, USA
    Beans
    Hidden!

    Re: How to tell Ubuntu from Ubuntu 2D using Terminal Commands Only?

    Excellent, works like a charm.

    Thank you very much.
    Who's Awesome? You're Awesome.

  4. #4
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    7,372
    Distro
    Lubuntu 14.04 Trusty Tahr

    Re: How to tell Ubuntu from Ubuntu 2D using Terminal Commands Only?

    Petro Dawg; quite welcome !

    Ain't ubuntu wonderful, where there is a will there is a way.
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubutu'n !

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •