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