fedora 進入命令行 終端 startx
在圖形界面的控制檯上輸入 init 3 即可停止 xwindow
如果無法返回到終端,可以按住 alt+ctrl+f2~f6啓動到新的控制檯,然後結束掉tty1上的xwindow
結束xwindow 的方法 ps -t tty1 找到進程中 xinit/xwindow... 的pid, 然後 kill -9 pid 即可
如果想開機啓動直接到 命令行 可以
方式一:
--------參考------ http://www.lslnet.com/linux/dosc1/11/linux-158215.htm
vi /etc/inittab
u can find, from the top few lines:
init:5:... (i forget)
change 5 to 3
save, exit, and reboot
u can find, from the top few lines:
init:5:... (i forget)
change 5 to 3
save, exit, and reboot
------------
telinit 3
------------
如果想從字符界面直接回KDE應該輸入什麼命令,我用startx回到了Gnome:(
switchdesk KDE
startx
startx /usr/bin/startkde #進入kde
startx /usr/bin/gnome-session #進入gnome
--------end:參考:http://www.lslnet.com/linux/dosc1/11/linux-158215.htm
方式2:
修改grub 啓動參數
vim /boot/grub/grub.conf
在裏面的kernel參數後面追加一個“空格3”
在裏面的kernel參數後面追加一個“空格3”
---------------------------------------------------------------------------