sysvinit-desc.xml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <sect2><title>Short descriptions</title>
  2. <para><command>halt</command> normally invokes shutdown with the -h flag,
  3. except when already in runlevel 0, then it tells the kernel to halt the system.
  4. But first it notes in the file <filename>/var/log/wtmp</filename> that the
  5. system is being brought down.</para>
  6. <para><command>init</command> is the mother of all processes. It reads its
  7. commands from <filename>/etc/inittab</filename>, which normally tell it which
  8. scripts to run for which runlevel, and how many gettys to spawn.</para>
  9. <para><command>killall5</command> sends a signal to all processes, except
  10. the processes in its own session -- so it won't kill the shell running the
  11. script that called it.</para>
  12. <para><command>last</command> shows which users last logged in (and out),
  13. searching back through the file <filename>/var/log/wtmp</filename>. It can
  14. also show system boots and shutdowns, and runlevel changes.</para>
  15. <para><command>lastb</command> shows the failed login attempts, as logged
  16. in <filename>/var/log/btmp</filename>.</para>
  17. <para><command>mesg</command> controls whether other users can send
  18. messages to the current user's terminal.</para>
  19. <para><command>pidof</command> reports the PIDs of the given programs.</para>
  20. <para><command>poweroff</command> tells the kernel to halt the system and
  21. switch off the computer. But see halt.</para>
  22. <para><command>reboot</command> tells the kernel to reboot the system.
  23. But see halt.</para>
  24. <para><command>runlevel</command> reports the previous and the current
  25. runlevel, as noted in the last runlevel record in
  26. <filename>/var/run/utmp</filename>.</para>
  27. <para><command>shutdown</command> brings the system down in a secure way,
  28. signaling all processes and notifying all logged-in users.</para>
  29. <para><command>sulogin</command> allows the superuser to log in. It is
  30. normally invoked by init when the system goes into single user mode.</para>
  31. <para><command>telinit</command> tells init which runlevel to enter.</para>
  32. <para><command>utmpdump</command> displays the content of the given login
  33. file in a friendlier format.</para>
  34. <para><command>wall</command> writes a message to all logged-in users.</para>
  35. </sect2>