Monday, July 8, 2013

How to start Linux in command line mode instead of GUI

Wanted to reduce the load on my mac CPU and Memory, so was trying to figure out how to start Linux in command line mode, below are the steps to do so

1) Login as root

2) Take a backup of /etc/inittab file
 vi /etc/inittab

Look for below line


id:5:initdefault:

3) Change id:5 to id:3, after change above line should like this
id:3:initdefault


3 - stands for Full Multiuser mode (with out x11)
5 - stands for X11 mode (GUI mode)

4) save the file and restart

Please note that, the next restart would be in command line mode


From Command line mode, any time you can switch back to GUI mode using "startx" command

After opening the GUI, logout and you will go back to CUI mode

so in short 
CUI -> GUI [startx] -> CUI [logout]




No comments:

Post a Comment