decide your linux OS is GUI or not

来源:互联网 发布:马云的淘宝怎么赚钱的 编辑:程序博客网 时间:2024/06/05 10:51
Try: 
ps -ef|grep X 

The ps command will display information about a selection of the active processes (from the man page - man ps). This command will list the location (ie /usr/bin/X) of x. If you do not get a location then there is no GUI.
0 0
原创粉丝点击