Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions

  




 

 

How to dynamically change the runlevel of Linux system without rebooting


How to dynamically change the runlevel of Linux system without rebooting

The current run level of the system can be changed dynamically without the necessity to reboot the system. This can be achieved using the telinit command with the required runlevel as the command line argument.

For example you can switch into single user mode by running the following command:

   
telinit S

The administrator could subsequently return to full multi-user, X graphical interface mode either by entering:

   
telinit 5

If you have made changes to the /etc/inittab file to change the default runlevel and want to change the system to that new default you can do so by using the telinit with the q command-line option:

   
telinit q

It is important to note that telinit can only be run as root and even then only from the system console. For a detailed description of Runlevels and the /etc/inittab file visit Linuxtopia's "
How to change the default run level of a RedHat 9.0 or Fedora Core Linux system" How To Guide.

 
 
  © Copyright 2005-2010 Linuxtopia. All Rights Reserved.