• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

telinit: command not found

by admin

The telinit command enables you to switch the current runlevel of the system. On systemd environments, the telinit command will be translated into the appropriate target request. The runlevel command prints the previous and current runlevel of the system, each separated by a space.

Syntax

The syntax of the telinit command is:

# telinit [options] {runlevel}

If you encounter the below error while running the telinit command:

telinit: command not found

you may try installing the below package as per your choice of distribution:

OS Distribution Command
Debian apt-get install sysvinit
Ubuntu apt-get install upstart-sysv
Arch Linux pacman -S systemd-sysvcompat
Kali Linux apt-get install sysvinit-core
CentOS yum install systemd
Fedora dnf install systemd
Raspbian apt-get install upstart

Changing current runlevel using telinit

To change the runlevel for a system without rebooting or changing the /etc/inittab file, execute the following command as the root user:

# telinit [runlevel_value]

With [runlevel_value] having the following values:

0 — Halt
1 — Single-user mode
2 — Not used (user-definable)
3 — Full multi-user mode
4 — Not used (user-definable)
5 — Full multi-user mode (with an X-based login screen)
6 — Reboot

Filed Under: Linux

Some more articles you might also be interested in …

  1. How to configure DM-Multipath from an iSCSI initiator to an iSCSI target in CentOS / RHEL
  2. cuyo: command not found
  3. efibootmgr: command not found
  4. How to Setup VNC Server for New User in CentOS/RHEL 5
  5. How to Boot KVM Guest into a Rescue shell
  6. CentOS / RHEL 7 : How to Enable the Old ethX Style Network Interfaces Names
  7. faketime: command not found
  8. libreoffice: command not found
  9. Order of environment calls for different OS shells in Linux
  10. ifenslave Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • “az storage blob” Command Examples (Manage blob storage containers and objects in Azure)
  • “az storage account” Command Examples (Manage storage accounts in Azure)
  • “az sshkey” Command Examples (Manage ssh public keys with virtual machines)
  • “az redis” Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright