Q. How do I disable X Window system on boot? I just need text based interface and there is no need to waste resources on X window system. How do I disable X Window under CentOS / RHEL / Red Hat / Fedora Linux?
A. The X Window System (also known as X11 or X) is a windowing system that implements the X display protocol and provides windowing on bitmap displays. It provides the standard toolkit and protocol with which to build graphical user interfaces (GUIs) on most Unix-like operating systems.
Disable X Windows System Under Red Hat / CentOS / Fedora Linux
Open /etc/inittab file, enter:
# vi /etc/inittab
Find the line that read as follows:
id:5:initdefault:
Change it as follows:
id:3:initdefault:
Save and close the file. Reboot system to test new changes:
# reboot
Run level 5 is used to boot into X Windows (Gnome or KDE GUI managers). Run level 3 is for text (console) based login.
You should follow me on twitter here or grab rss feed to keep track of new changes.
Featured Articles:
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop






![Linux Gnome Numeric Keypad Disabled [ Mouse keys ]](http://s13.cyberciti.org/images/shared/rp/3/5.jpg)
![Linux Find Out If the PCIe / AGP / VGA Driver Is Installed OR NOT [ Radeon X1550 64 bit ]](http://s13.cyberciti.org/images/shared/rp/3/20.jpg)




{ 6 comments… read them below or add one }
Hi,
Instead of rebooting you can try this command:
telinit 3
This will change run level to 3.
I hope it helps.
All the best,
Andres Montalban
does help if you are not root!!!
Bill
i want to disable the xwindow and want to run only one java application at that time..
only that application window will open after rebooting the system..other all remains locked..what i have to do for that???
its for Knoppix
is there a way to do this without rebooting?
telinit 3
without restart
Thanks Andres Montalban
Could someone tell me, once disable the X window system, how to enable it without restarting the Machine all over again?…There are some applications which needs switching back and forth..