decide your linux OS is GUI or not

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.
posted @ 2016-04-09 08:56  yxwkaifa  阅读(162)  评论(0编辑  收藏  举报