Complete.Org: Mailing Lists: Archives: discussion: January 2002:
[aclug-L] FW: System States
Home

[aclug-L] FW: System States

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: "Aclug Discussion" <discussion@xxxxxxxxx>
Subject: [aclug-L] FW: System States
From: "Dale W Hodge" <dwh@xxxxxxxxxxxxxxxx>
Date: Fri, 25 Jan 2002 09:45:02 -0600
Reply-to: discussion@xxxxxxxxx

-----Original Message-----
From: Linux_Tips_and_Tricks@xxxxxxxxxxxxxxx
[mailto:Linux_Tips_and_Tricks@xxxxxxxxxxxxxxx]
Sent: Friday, January 25, 2002 12:30 AM


LINUX TIPS AND TRICKS --- January 25, 2002
Published by ITworld.com -- changing the way you view IT
http://www.itworld.com/newsletters
____________________________________________________________________________
____

HIGHLIGHTS

* This week, Danny explains the meaning of system states and shows you
  how to switch from one state to another.

____________________________________________________________________________
__

System States
By Danny Kalev

Systems States and their Meanings
A Linux system may run in one of seven possible states numbered from 0
to 6, as well as the single-user state that the letters s or S
represent. Here is a description of all these states:

    * State 0 is the halt state. When you switch a system to state 0,
      it will shutdown immediately.
    * State 1, known as the administrative state, allows access only to
      a super-user. Using this state, a system administrator can
      perform various maintenance operations and installations without
      interference from other users.
    * State 2 is the partial multiple user state. It allows multiple
      users to login but it disables remote file sharing.
    * State 3 is the multiple user state. It allows multiple users to
      login and enables remote file sharing. This is the default state
      for the command line interface.
    * State 4 is unused.
    * State 5 is the default state for graphical logins that use
      display managers such as gdm and xdm. If you choose to use
      graphical logins during the installation process, this will be
      your default state instead of state 3, which would be the default
      otherwise.
    * State 6 shuts down the system and reboots (note that state 0
      shuts down the system without performing an automatic reboot
      afterwards).
    * State s or S is the single-user state. It restricts the number of
      logged in users to one.

Detecting and Setting the System's State
To detect the state in which your system is currently running, use the
runlevel command (the term 'runlevel' is a synonym for 'state'). For
example:

     #runlevel
      N 3

On startup, Linux enters the default state. The system's default state
is stored in a file called /etc/inittab. You may override it by
changing the value of the init default entry. To change the current
system state, use the init command. For example, to switch to a single-
user mode, type the following command:

     #init s

Likewise, to shut the system down immediately, use the following
command:

    #init 0

Note, however, that, in general, you should use the 'shutdown' command.
It allows you to include a warning message that is sent to all the
users that are currently logged in or specify a delay.

About the author(s)
-------------------
Danny Kalev is a system analyst and software engineer with more than 10
years of experience, specializing in C++ and object-oriented analysis
and design on various platforms including VMS, DOS, Windows, Unix, and
Linux. His technical interests involve code optimization, networking,
and distributed computing. He is also a member of the ANSI C++
standardization committee and the author of ANSI/ISO C++ Professional
Programmer's Handbook (Que, 1999). Danny can be reached at
linuxnl@xxxxxxxxxx.
____________________________________________________________________________
____

ADDITIONAL RESOURCES

About system states
http://itw.itworld.com/GoNow/a14724a51177a76028222a3

Run levels revisited
http://itw.itworld.com/GoNow/a14724a51177a76028222a0

In the Beginning
http://itw.itworld.com/GoNow/a14724a51177a76028222a4

An Introduction to the Linux Operating System Architecture
http://itw.itworld.com/GoNow/a14724a51177a76028222a2

Linux Init run levels, and startup configuration
http://itw.itworld.com/GoNow/a14724a51177a76028222a1
____________________________________________________________________________
____

ITWORLD.COM NEWSLETTER ARCHIVE

Index of Linux Tips and Tricks
http://www.itworld.com/nl/lnx_tip/

The dl Library
http://www.itworld.com/nl/lnx_tip/05112001/

Memory Locking
http://www.itworld.com/nl/lnx_tip/05182001/
____________________________________________________________________________
____

CUSTOMER SERVICE

SUBSCRIBE/UNSUBSCRIBE:
- Go to: http://www.itworld.com/newsletters
- Click on "View my newsletters" to log in and manage your account
- To subscribe, check the box next to the newsletter
- To unsubscribe, uncheck the box next to the newsletter
- When finished, click submit

Questions? Please e-mail customer service at: mailto:support@xxxxxxxxxxx
____________________________________________________________________________
____

CONTACTS

* Editorial: Andrew Santosusso, Newsletter Editor,
  andrew_santosusso@xxxxxxxxxxx
* Advertising: Clare O'Brien, Vice President of Sales,
  clare_obrien@xxxxxxxxxxx
* Career Corner: Janis Crowley, Vice President/General Manager, IDG
  Recruitment Solutions, janis_crowley@xxxxxxxxxxxxx
* Other inquiries: Jodie Naze, Senior Product Marketing Manager,
  jodie_naze@xxxxxxxxxxx

____________________________________________________________________________
____

PRIVACY POLICY

ITworld.com has been TRUSTe certified
http://www.itworld.com/Privacy/

Copyright 2002 ITworld.com, Inc., All Rights Reserved.
http://www.itworld.com




**SEND TO A FRIEND**
Share this email with a friend! Click here!
http://itw.itworld.com/GoForward/a14724a51177aSa76028222a18



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.317 / Virus Database: 176 - Release Date: 1/21/02

-- This is the discussion@xxxxxxxxx list.  To unsubscribe,
visit http://tmp2.complete.org/cgi-bin/listargate-aclug.cgi


[Prev in Thread] Current Thread [Next in Thread]
  • [aclug-L] FW: System States, Dale W Hodge <=