PDA

View Full Version : [SOLVED] How to tell Ubuntu from Ubuntu 2D using Terminal Commands Only?



Petro Dawg
September 27th, 2013, 01:20 AM
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...


lsb_release -a

and


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.

Bashing-om
September 27th, 2013, 01:29 AM
Petro Dawg; Hey ...

this:


echo $DESKTOP_SESSION

output:
12.04 3D =>ubuntu3d is reported
12.04 2D =>ubuntu2d is reported



hope that helps

Petro Dawg
September 27th, 2013, 01:33 AM
Excellent, works like a charm.

Thank you very much.

Bashing-om
September 27th, 2013, 01:58 AM
Petro Dawg; quite welcome !

Ain't ubuntu wonderful, where there is a will there is a way.