← 返回命令列表

Linux command

telinit 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Power off

telinit 0

Reboot

telinit 6

Example

telinit [2|3|4|5]

Example

telinit 1

Reload

telinit q

Example

telinit --no-wall [0|6]

说明

telinit changes the SysV init runlevel. On systemd systems, runlevel requests are transparently translated to systemd target activations: - 0 → poweroff.target - 1 → rescue.target - 2-4 → multi-user.target - 5 → graphical.target - 6 → reboot.target

参数

--no-wall
Don't send wall message before reboot/poweroff

FAQ

What is the telinit command used for?

telinit changes the SysV init runlevel. On systemd systems, runlevel requests are transparently translated to systemd target activations: - 0 → poweroff.target - 1 → rescue.target - 2-4 → multi-user.target - 5 → graphical.target - 6 → reboot.target

How do I run a basic telinit example?

Run `telinit 0` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --no-wall do in telinit?

Don't send wall message before reboot/poweroff