查看Linux用的桌面是GNOME、KDE或者其他

参考:http://superuser.com/questions/96151/how-do-i-check-whether-i-am-using-kde-or-gnome


1) pgrep -l "gnome|kde|mate|cinnamon|lxde|xfce|jwm"


2) ps -A | egrep -i "gnome|kde|mate|cinnamon|lxde|xfce|jwm"


3) ls /usr/bin/*session*

in GNOME returns /usr/bin/gnome-session (and more)
in MATE returns /usr/bin/mate-session (and more)
in LXDE returns /usr/bin/lxsession (and more)
in JWM returns /usr/bin/icewm-session (should be jwm-session, not?!)



你可能感兴趣的:(查看Linux用的桌面是GNOME、KDE或者其他)