Init Definition and Meaning

In Unix or Linux-based operating systems, init, short for initialization, is the first process during the booting of a computer system that runs until the system is shut down. Init is a daemon process executed by the kernel and is the last step of the kernel boot sequence. Its principal role is to create processes from a script stored in the /etc/inittab file. It also controls independent processes required by any particular system.

In simplest terms, the job of init is to get everything running the way it should be once the kernel is fully running. It essentially establishes and operates the entire user space.

After the /etc/inittab is read, init determines how the system in each runlevel should be set up as well as the set default runlevel. Runlevel is a software configuration that allows only a selected group of processes to exist. These processes are defined in the /etc/inittab file.

Init runlevels

Init can be one of eight runlevels: 0-6, S, or s, although the runlevel can be changed if needed. It’s worth noting S and s are the same and are not meant to be used directly but only for the scripts that are executed when entering runlevel 1.

The functions of runlevels are as follows:

  • 0: Halts the system
  • 1: Gets the system down into single user mode
  • 2: Gets multiuser mode without networking
  • 3: Gets multiuser mode with networking
  • 4: Not used
  • 5: Gets multiuser with networking and X windows
  • 6: Reboots the system

After init is invoked as the last step of the kernel boot sequence, the /etc/inittab file is looked for to see if an entry of the type initdefault is present, which determines the initial runlevel of the system. If it’s not present, a runlevel must be entered at the system console.

By default most Linux-based systems boot to runlevel 3 or 5. After the default runlevel is set, init starts all background processes. Init must start all necessary daemons, background processes, and services required such as starting up a boot screen, various parts of the networking stack, and hardware in the machine.

Macs also used the term init before System 7 to refer to system extensions.





Abby Dykes
Abby Dykes
Abby Dykes is a newly-graduated writer and editor for websites such as TechnologyAdvice.com, Webopedia.com, and Project-Management.com. When she’s not writing about technology, she enjoys giving too many treats to her dog and coaching part-time at her local gym.

Top Articles

Huge List Of Texting and Online Chat Abbreviations

From A3 to ZZZ we list 1,559 text message and online chat abbreviations to help you translate and understand today's texting lingo. Includes Top...

How To Create A Desktop Shortcut To A Website

This Webopedia guide will show you how to create a desktop shortcut to a website using Firefox, Chrome or Internet Explorer (IE). Creating a desktop...

The History Of Windows Operating Systems

Microsoft Windows is a family of operating systems. We look at the history of Microsoft's Windows operating systems (Windows OS) from 1985 to present...

Hotmail [Outlook] Email Accounts

  By Vangie Beal Hotmail is one of the first public webmail services that can be accessed from any web browser. Prior to Hotmail and its...

Abacus Definition & Meaning

An abacus, also known as a counting frame, is a mechanical device used...

Legacy Code Definition &...

Legacy code refers to source code that has been inherited from a previous...

Unregulated Power Supply Definition...

An unregulated power supply is a system that transforms input voltage into direct...