[转帖]查看Linux用的桌面是GNOME、KDE或者其他

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

KDE 基于QT做的 已经越来越少的人用了. 

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*

这边的效果为:

猜你喜欢

转载自www.cnblogs.com/jinanxiaolaohu/p/11288426.html