Crea sito
 

Linux: Versione e Ambiente grafico

Verifica della versione di Linux e relativo Ambiente Grafico in uso.

I comandi:

echo $DESKTOP_SESSION
ls -l /usr/share/xsessions
find /usr/share/xsessions -name “*.desktop” -exec basename “{}” .desktop “;”
cat /etc/issue
cat /proc/version
cat /etc/*release

l’output:

linux~$ echo $DESKTOP_SESSION
cinnamon
linux~$ ls -l /usr/share/xsessions
totale 44
-rw-r–r– 1 root root 225 apr 16 2012 cairo-dock.desktop
-rw-r–r– 1 root root 241 apr 16 2012 cairo-dock-fallback.desktop
-rw-r–r– 1 root root 223 apr 16 2012 cairo-dock-unity.desktop
-rw-r–r– 1 root root 268 dic 3 2013 cinnamon2d.desktop
-rw-r–r– 1 root root 155 dic 3 2013 cinnamon.desktop
-rw-r–r– 1 root root 233 apr 19 2012 gnome-classic.desktop
-rw-r–r– 1 root root 205 apr 19 2012 gnome.desktop
-rw-r–r– 1 root root 277 apr 19 2012 gnome-fallback.desktop
-rw-r–r– 1 root root 188 apr 19 2012 gnome-shell.desktop
-rw-r–r– 1 root root 208 apr 19 2012 ubuntu-2d.desktop
-rw-r–r– 1 root root 185 apr 19 2012 ubuntu.desktop
linux~$ find /usr/share/xsessions -name “*.desktop” -exec basename “{}” .desktop “;”
gnome-classic
cairo-dock-unity
ubuntu
cairo-dock-fallback
gnome-fallback
cinnamon
gnome
gnome-shell
ubuntu-2d
cairo-dock
cinnamon2d
linux~$ cat /etc/issue
Ubuntu 12.04.5 LTS \n \l

linux~$ cat /proc/version
Linux version 3.2.0-80-generic ([email protected]) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #116-Ubuntu SMP Mon Mar 23 17:11:03 UTC 2015
linux~$ cat /etc/*release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION=”Ubuntu 12.04.5 LTS”
NAME=”Ubuntu”
VERSION=”12.04.5 LTS, Precise Pangolin”
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME=”Ubuntu precise (12.04.5 LTS)”
VERSION_ID=”12.04″
linux~$