In centOS, you need to change run-level,
Edit /etc/inittab and look for line which says
id:5
Change :
that 5 to 3 and don't touch anything else, that will now make your computer to always boot into command line by default.
You can edit file by :
nano /etc/inittab
after you have done changes, ctrl+O to write and Ctrl+X to exit.