有无直接在终端关闭X的命令

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
beikerray119
帖子: 4
注册时间: 2007-03-29 16:13

Re: 有无直接在终端关闭X的命令

#16

帖子 beikerray119 » 2009-08-14 12:51

ps -ef 查看PID,然后直接kill掉吧。
头像
mm740
帖子: 300
注册时间: 2009-08-09 17:34

Re: 有无直接在终端关闭X的命令

#17

帖子 mm740 » 2009-10-18 15:00

yilan198711 写了:startx
startx后再用sudo /etc/init.d/gdm stop就不能关闭?

root@bt-desktop:~# sudo /etc/init.d/gdm stop
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service gdm stop

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the stop(8) utility, e.g. stop gdm
root@bt-desktop:~# sudo /etc/init.d/gdm stop
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service gdm stop
淡定,不要听风就是雨。淡定是一种境界,是一种超然世外的意识。只有修养达到一定阶段,才能产生并拥有。拥有了淡定,就拥有了风度。于是淡定便成了一种气质,让我辈无论如何努力和奋斗,始终难望其项背。淡定需要时间和实践的积淀和净化,是一种拨云见日,是一种豁然开朗!君子坦荡荡,小人长戚戚。愿我们除了自卑多了自由,少了忙乱多了从容,去了怨恨多了温煦,戒了偏激多了沉着。一切在淡定中发展,在淡定中凯旋。
回复