[6052e11] | 1 | <sect2><title> </title><para> </para></sect2>
|
---|
[8fcc2c0] | 2 |
|
---|
[6052e11] | 3 | <sect2><title>Descriptions</title>
|
---|
[6370fa6] | 4 |
|
---|
[087e584] | 5 | <para>(Last checked against version &sysvinit-contversion;.)</para>
|
---|
[6370fa6] | 6 |
|
---|
[6052e11] | 7 | <sect3><title>Program file descriptions</title>
|
---|
[6370fa6] | 8 |
|
---|
[978d0bf] | 9 | <para><command>halt</command> normally invokes shutdown with the -h flag,
|
---|
| 10 | except when already in runlevel 0, then it tells the kernel to halt the system.
|
---|
| 11 | But first it notes in the file <filename>/var/log/wtmp</filename> that the
|
---|
| 12 | system is being brought down.</para>
|
---|
| 13 |
|
---|
| 14 | <para><command>init</command> is the mother of all processes. It reads its
|
---|
| 15 | commands from <filename>/etc/inittab</filename>, which normally tell it which
|
---|
| 16 | scripts to run for which runlevel, and how many gettys to spawn.</para>
|
---|
| 17 |
|
---|
| 18 | <para><command>killall5</command> sends a signal to all processes, except
|
---|
| 19 | the processes in its own session -- so it won't kill the shell running the
|
---|
| 20 | script that called it.</para>
|
---|
| 21 |
|
---|
| 22 | <para><command>last</command> shows which users last logged in (and out),
|
---|
| 23 | searching back through the file <filename>/var/log/wtmp</filename>. It can
|
---|
| 24 | also show system boots and shutdowns, and runlevel changes.</para>
|
---|
| 25 |
|
---|
| 26 | <para><command>lastb</command> shows the failed login attempts, as logged
|
---|
| 27 | in <filename>/var/log/btmp</filename>.</para>
|
---|
| 28 |
|
---|
| 29 | <para><command>mesg</command> controls whether other users can send
|
---|
| 30 | messages to the current user's terminal.</para>
|
---|
| 31 |
|
---|
| 32 | <para><command>pidof</command> reports the PIDs of the given programs.</para>
|
---|
| 33 |
|
---|
| 34 | <para><command>poweroff</command> tells the kernel to halt the system and
|
---|
| 35 | switch off the computer. But see halt.</para>
|
---|
| 36 |
|
---|
| 37 | <para><command>reboot</command> tells the kernel to reboot the system.
|
---|
| 38 | But see halt.</para>
|
---|
| 39 |
|
---|
| 40 | <para><command>runlevel</command> reports the previous and the current
|
---|
| 41 | runlevel, as noted in the last runlevel record in
|
---|
| 42 | <filename>/var/run/utmp</filename>.</para>
|
---|
| 43 |
|
---|
| 44 | <para><command>shutdown</command> brings the system down in a secure way,
|
---|
| 45 | signaling all processes and notifying all logged-in users.</para>
|
---|
| 46 |
|
---|
| 47 | <para><command>sulogin</command> allows the superuser to log in. It is
|
---|
| 48 | normally invoked by init when the system goes into single user mode.</para>
|
---|
| 49 |
|
---|
| 50 | <para><command>telinit</command> tells init which runlevel to enter.</para>
|
---|
| 51 |
|
---|
| 52 | <para><command>utmpdump</command> displays the content of the given login
|
---|
| 53 | file in a friendlier format.</para>
|
---|
| 54 |
|
---|
| 55 | <para><command>wall</command> writes a message to all logged-in users.</para>
|
---|
[6370fa6] | 56 |
|
---|
[bdc08c1] | 57 | </sect3>
|
---|
[6370fa6] | 58 |
|
---|
| 59 | </sect2>
|
---|
| 60 |
|
---|