Skip to main content

Linux command: runlevel

CentOS 4.8: /etc/inittab file

List of 7 runlevels on Linux:

  • 0 - halt
  • 1 - Single user mode
  • 2 - Multiuser, without NFS (same as 3, if NOT have networking
  • 3 - Full multiuser mode
  • 4 - unused
  • 5 - X10
  • 6 - reboot

Check current runlevel

runlevel
who -r

For systemd

systemctl get-default

Change default runlevel to 3

Edit /etc/inittab file

id:3:initdefault:

Just for fun, what if we set initdefault run level to 6.

Try settings initdefault run level to 6

The system keeps rebooting if we try setting initdefault run level to 6.

The system keep rebooting if initdefault run level is set to 6

Popular posts from this blog

hmailserver: Notes from the field

hmailserver is one of free open source mail servers running on Microsoft Windows operating system.

stegseek: Notes

StegCracker has been retired following the release of StegSeek, which will blast through the rockyou.txt wordlist within 1.9 second as opposed to StegCracker which takes ~5 hours.

Install Microsoft .NET Core SDK

.NET Core Software Development Kit (SDK) is a set of libraries and tools that allow developers to create .NET Core applications and libraries.