Ubuntu Linux shutdown the X server

Recently someone asked me a question - “How do I shutdown the X server, so that I have a command line prompt on the console?”

Well answer is very simple use script located at /etc/init.d/ directory. If you are using KDE desktop type the command (make sure you save all the work as following command does not ask configrmation):

Full Tip.