diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-11-14 02:57:29 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-11-14 02:57:29 +0000 |
commit | 5ac4e796ab65f0ab2514982a0b736ed185b71681 (patch) | |
tree | 0a7aa303df52b25f34eca7cb6da19071822a3885 /sbin | |
parent | 8c40cc2c58bce394e853e8cfab1dde400d093b18 (diff) |
use $ or # before commands in examples
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/atactl/atactl.8 | 70 | ||||
-rw-r--r-- | sbin/disklabel/disklabel.8 | 14 | ||||
-rw-r--r-- | sbin/ifconfig/ifconfig.8 | 14 | ||||
-rw-r--r-- | sbin/lmccontrol/lmccontrol.8 | 8 | ||||
-rw-r--r-- | sbin/mount/mount.8 | 12 | ||||
-rw-r--r-- | sbin/ping6/ping6.8 | 8 |
6 files changed, 65 insertions, 61 deletions
diff --git a/sbin/atactl/atactl.8 b/sbin/atactl/atactl.8 index f9bcec8af9b..2a872f355dc 100644 --- a/sbin/atactl/atactl.8 +++ b/sbin/atactl/atactl.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: atactl.8,v 1.17 2002/08/04 14:11:41 gluk Exp $ +.\" $OpenBSD: atactl.8,v 1.18 2002/11/14 02:57:27 deraadt Exp $ .\" $NetBSD: atactl.8,v 1.5 1999/02/24 18:49:14 jwise Exp $ .\" .\" Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -69,22 +69,22 @@ the command is implied. .Sh COMMANDS .Pp -.Cm identify +.Cm # atactl identify .Pp Identify the specified device, displaying the device's vendor, product, revision strings, supported capabilities and enabled capabilities. .Pp -.Cm idle +.Cm # atactl idle .Pp Place the specified device into Idle mode. This mode may consume less power than Active mode. .Pp -.Cm standby +.Cm # atactl standby .Pp Place the specified device into Standby mode. This mode will consume less power than Idle mode. .Pp -.Cm sleep +.Cm # atactl sleep .Pp Place the specified device into Sleep mode. This mode will consume less power than Standby mode, @@ -94,7 +94,7 @@ Typically the driver performs this reset automatically, but this should still be used with caution. .Pp -.Cm setidle +.Cm # atactl setidle .Ar standby-timer .Pp Places the specified device into Idle mode, and sets the Standby timer @@ -103,7 +103,7 @@ to seconds. A value of 0 will disable the Standby timer. .Pp -.Cm setstandby +.Cm # atactl setstandby .Ar standby-timer .Pp Places the specified device into Standby mode, and sets the Standby timer @@ -112,12 +112,12 @@ to seconds. A value of 0 will disable the Standby timer. .Pp -.Cm checkpower +.Cm # atactl checkpower .Pp Will print out if the device is in Active, Idle, or Standby power management mode. .Pp -.Cm apmset +.Cm # atactl apmset .Ar power-management-level .Pp Enables and sets the advanced power management level to the requested @@ -142,7 +142,7 @@ in the output of the .Cm identify command. .Pp -.Cm apmdisable +.Cm # atactl apmdisable .Pp Disables support for advanced power management on the specified device. Note that devices supporting advanced powermanagement may refuse to @@ -150,7 +150,7 @@ disable it, resulting in an .Sq ATA device returned Aborted Command warning. .Pp -.Cm acousticset +.Cm # atactl acousticset .Ar acoustic-management-level .Pp Enables and sets the automatic acoustic management level to the requested @@ -165,7 +165,7 @@ in the output of the .Cm identify command. .Pp -.Cm acousticdisable +.Cm # atactl acousticdisable .Pp Disables support for automatic acoustic management on the specified device. Note that devices supporting automatic acoustic management may refuse to @@ -173,17 +173,17 @@ disable it, resulting in an .Sq ATA device returned Aborted Command warning. .Pp -.Cm podenable +.Cm # atactl podenable .Pp Allows the specified device to revert to power-on default (pod) settings after a reset. .Pp -.Cm poddisable +.Cm # atactl poddisable .Pp Disallows the specified device to revert to power-on default (pod) settings after a reset. .Pp -.Cm puisenable +.Cm # atactl puisenable .Pp Enables power-up in standby (puis) on the specified device, causing the device to wait with spinning up the disks after power-up. @@ -199,7 +199,7 @@ in the output of the .Cm identify command. .Pp -.Cm puisdisable +.Cm # atactl puisdisable .Pp Disables power-up in standby (puis) on the specified device, causing the device to spin up the disks after power-up. @@ -207,12 +207,12 @@ This should be the factory default setting of the device and it is recommended to leave this setting disabled. .Pp -.Cm puisspinup +.Cm # atactl puisspinup .Pp Explicitly spins up the device if it powered-up into standby mode (i.e. power-up in standby was enabled). .Pp -.Cm readaheadenable +.Cm # atactl readaheadenable .Pp Enables read look-ahead on the specified device. This may increase performance. @@ -223,7 +223,7 @@ in the output of the .Cm identify command. .Pp -.Cm readaheaddisable +.Cm # atactl readaheaddisable .Pp Disables read look-ahead on the specified device. This may decrease performance. @@ -234,11 +234,11 @@ behaviour in implementing this, so it is recommended to issue this command on a disk containing any currently mounted filesystems. .Pp -.Cm secsetpass +.Cm # atactl secsetpass .Ar user .Ar high | maximum .br -.Cm secsetpass +.Cm # atactl secsetpass .Ar master .Pp Sets password and security level for the specified device. @@ -274,7 +274,7 @@ Execution of the .Cm secerase command erases all user data on the device. .Pp -.Cm secunlock +.Cm # atactl secunlock .Ar user | master .Pp Unlocks the specified device with user or master password. @@ -286,7 +286,7 @@ If the security level was set to maximum during the last .Cm secsetpass command, the device won't unlock if the master password is received. .Pp -.Cm secerase +.Cm # atactl secerase .Ar user | master .Op Ar enhanced .Pp @@ -308,7 +308,7 @@ This command will disable the device lock mode, however, the master password will still be stored internally within the device and may be reactivated later when a new user password is set. .Pp -.Cm secfreeze +.Cm # atactl secfreeze .Pp Prevents changes to passwords until a following power cycle. The purpose of this command is to prevent password setting attacks on the @@ -316,7 +316,7 @@ security system. After command completion any other commands that update the device lock mode will be aborted. .Pp -.Cm secdisablepass +.Cm # atactl secdisablepass .Ar user | master .Pp Disables the lock mode for the specified device with user or master password. @@ -336,7 +336,7 @@ If you lose the user and master passwords the device will not be accessible at all. Don't use it unless the implications are completely understood. .Pp -.Cm smartenable +.Cm # atactl smartenable .Pp Enables SMART (Self-Monitoring, Analysis, and Reporting Technology) on the specified device (if supported). @@ -348,7 +348,7 @@ in the output of the .Cm identify command. .Pp -.Cm smartdisable +.Cm # atactl smartdisable .Pp Disables support for SMART on the specified device. Note that this means that the device will no longer record any SMART @@ -359,7 +359,7 @@ Note that SMART be enabled while executing the next described commands or the device will return an error. .Pp -.Cm smartstatus +.Cm # atactl smartstatus .Pp Reads the reliability status of the specified device. If the device reports @@ -368,12 +368,12 @@ failure), the warning .Sq SMART threshold exceeded! is printed to stderr and a status of 2 is returned. .Pp -.Cm smartautosave +.Cm # atactl smartautosave .Ar enable | disable .Pp Enables/disables attribute autosave feature on the specified device. .Pp -.Cm smartoffline +.Cm # atactl smartoffline .Ar subcommand .Pp Causes the specified device to immediately initiate the optional set of @@ -404,12 +404,12 @@ This option is therefore .Em not recommended unless the implications are understood. .Pp -.Cm smartread +.Cm # atactl smartread .Pp Reads various SMART information from the specified device and prints it to stdout. .Pp -.Cm smartreadlog +.Cm # atactl smartreadlog .Ar log .Pp Reads specified @@ -429,7 +429,7 @@ comprehensive error log; self-test log. .El .Pp -.Cm readattr +.Cm # atactl readattr .Pp Displays attributes thresholds and values for the specified device. Besides attributes values device vendor can provide additional information @@ -444,7 +444,7 @@ SMART commands and command are for experts only. If you can't understand its meaning don't ask us, read ATA working drafts. .Pp -.Cm writecachedisable +.Cm # atactl writecachedisable .Pp Disable the write cache on the specified device (if supported). This may decrease performance. @@ -454,7 +454,7 @@ in the output of the .Cm identify command. .Pp -.Cm writecacheenable +.Cm # atactl writecacheenable .Pp Enables the write cache on the specified device (if supported). This may increase performance, however data still in the device's cache at diff --git a/sbin/disklabel/disklabel.8 b/sbin/disklabel/disklabel.8 index d001a002c23..27fb9320342 100644 --- a/sbin/disklabel/disklabel.8 +++ b/sbin/disklabel/disklabel.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: disklabel.8,v 1.45 2002/09/18 07:33:47 deraadt Exp $ +.\" $OpenBSD: disklabel.8,v 1.46 2002/11/14 02:57:27 deraadt Exp $ .\" $NetBSD: disklabel.8,v 1.9 1995/03/18 14:54:38 cgd Exp $ .\" .\" Copyright (c) 1987, 1988, 1991, 1993 @@ -507,12 +507,12 @@ with the flag and paste any entries you want from the default label into the real one. .Sh EXAMPLES -.Dl disklabel sd0 +.Cm # disklabel sd0 .Pp Display the in-core label for sd0 as obtained via .Pa /dev/rsd0c . .Pp -.Dl disklabel -w -r /dev/rsd0c sd2212 foo +.Cm # disklabel -w -r /dev/rsd0c sd2212 foo .Pp Create a label for sd0 based on information for .Dq sd2212 @@ -523,7 +523,7 @@ Any existing bootstrap code will be clobbered. .Fl r flag though.) .Pp -.Dl disklabel -e -r sd0 +.Cm # disklabel -e -r sd0 .Pp Read the on-disk label for sd0, edit it and reinstall in-core as well as on-disk. @@ -533,13 +533,13 @@ flag though.) Existing bootstrap code is unaffected. .Pp -.Dl disklabel -R sd0 mylabel +.Cm # disklabel -R sd0 mylabel .Pp Restore the on-disk and in-core label for sd0 from information in .Pa mylabel . Existing bootstrap code is unaffected. .Pp -.Dl disklabel -B sd0 +.Cm # disklabel -B sd0 .Pp Install a new bootstrap on sd0. The boot code comes from @@ -550,7 +550,7 @@ On-disk and in-core labels are unchanged, but on some systems other information may be destroyed. Use with care. .Pp -.Dl disklabel -w -B /dev/rsd0c -b newboot sd2212 +.Cm # disklabel -w -B /dev/rsd0c -b newboot sd2212 .Pp Install a new label and bootstrap. The label is derived from disktab information for diff --git a/sbin/ifconfig/ifconfig.8 b/sbin/ifconfig/ifconfig.8 index 863eb3109b6..e71348ab7af 100644 --- a/sbin/ifconfig/ifconfig.8 +++ b/sbin/ifconfig/ifconfig.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: ifconfig.8,v 1.58 2002/06/14 09:14:24 itojun Exp $ +.\" $OpenBSD: ifconfig.8,v 1.59 2002/11/14 02:57:27 deraadt Exp $ .\" $NetBSD: ifconfig.8,v 1.11 1996/01/04 21:27:29 pk Exp $ .\" $FreeBSD: ifconfig.8,v 1.16 1998/02/01 07:03:29 steve Exp $ .\" @@ -545,24 +545,24 @@ for that interface will be printed. Only the superuser may modify the configuration of a network interface. .Sh EXAMPLES .Bl -tag -width ifconfig -.It Cm ifconfig fxp0 inet 192.168.1.10 netmask 255.255.255.0 +.It Cm # ifconfig fxp0 inet 192.168.1.10 netmask 255.255.255.0 Assign the inet(4) address of 192.168.1.10 with a network mask of 255.255.255.0 to interface fxp0. .Pp -.It Cm ifconfig fxp0 ipx 12625920 +.It Cm # ifconfig fxp0 ipx 12625920 Assign the ipx(3) address of 12625920 specified in decimal to interface fxp0. .Pp -.It Cm ifconfig fxp0 atalk 39108.128 range 39107-39109 phase 2 +.It Cm # ifconfig fxp0 atalk 39108.128 range 39107-39109 phase 2 Assign the AppleTalk network 39108 and server node 128 with a network range of 39107-39109 to interface fxp0 on a phase 2 AppleTalk network. .Pp -.It Cm ifconfig xl0 media 10baseT +.It Cm # ifconfig xl0 media 10baseT Configure the xl0 interface to use 10baseT. .Pp -.It Cm ifconfig xl0 media 100baseTX mediaopt full-duplex +.It Cm # ifconfig xl0 media 100baseTX mediaopt full-duplex Configure the xl0 interface to use 100baseTX, full duplex. .Pp -.It Cm ifconfig vlan0 192.168.254.1 vlan 4 vlandev fxp0 +.It Cm # ifconfig vlan0 192.168.254.1 vlan 4 vlandev fxp0 Configure the vlan0 interface for IP address 192.168.254.1, vlan tag 4, and vlan parent device fxp0. .El diff --git a/sbin/lmccontrol/lmccontrol.8 b/sbin/lmccontrol/lmccontrol.8 index 21780eec250..81a9ad32da5 100644 --- a/sbin/lmccontrol/lmccontrol.8 +++ b/sbin/lmccontrol/lmccontrol.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: lmccontrol.8,v 1.12 2002/11/09 02:14:10 fgsch Exp $ +.\" $OpenBSD: lmccontrol.8,v 1.13 2002/11/14 02:57:27 deraadt Exp $ .\" .\" Copyright (c) 1997-1999 LAN Media Corporation (LMC) .\" All rights reserved. www.lanmedia.com @@ -120,9 +120,9 @@ power). .Sh EXAMPLES To set a SSI card for a speed of 2048000 bits/sec with HDLC keepalive off, one could use: -.Bd -unfilled -offset indent -# lmccontrol lmc0 -l 2048000 -K -.Ed +.Pp +.Cm # lmccontrol lmc0 -l 2048000 -K +.Pp .Sh SEE ALSO .Xr lmc 4 , .Xr sppp 4 , diff --git a/sbin/mount/mount.8 b/sbin/mount/mount.8 index 943bcc0a32a..d9bb9f01c1c 100644 --- a/sbin/mount/mount.8 +++ b/sbin/mount/mount.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: mount.8,v 1.36 2002/02/11 18:43:51 mpech Exp $ +.\" $OpenBSD: mount.8,v 1.37 2002/11/14 02:57:27 deraadt Exp $ .\" $NetBSD: mount.8,v 1.11 1995/07/12 06:23:21 cgd Exp $ .\" .\" Copyright (c) 1980, 1989, 1991, 1993 @@ -308,9 +308,13 @@ Fast File Systems are described in the manual page. .Sh EXAMPLES .Bd -literal -# mount -t cd9660 -r /dev/cd0a /mnt/cdrom -# mount -t msdos /dev/fd0a /mnt/floppy -# mount host:/path/name /mnt/nfs +.Pp +.Cm # mount -t cd9660 -r /dev/cd0a /mnt/cdrom +.Pp +.Cm # mount -t msdos /dev/fd0a /mnt/floppy +.Pp +.Cm # mount host:/path/name /mnt/nfs +.Pp .Ed .Sh FILES .Bl -tag -width /etc/fstab -compact diff --git a/sbin/ping6/ping6.8 b/sbin/ping6/ping6.8 index 2c3928a847c..565daecf9c6 100644 --- a/sbin/ping6/ping6.8 +++ b/sbin/ping6/ping6.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: ping6.8,v 1.24 2002/05/26 13:22:40 itojun Exp $ +.\" $OpenBSD: ping6.8,v 1.25 2002/11/14 02:57:27 deraadt Exp $ .\" $KAME: ping6.8,v 1.57 2002/05/26 13:18:25 itojun Exp $ .\" .\" Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -399,7 +399,7 @@ works just like would work; the following will send ICMPv6 echo request to .Li dst.foo.com . .Bd -literal -offset indent -ping6 -n dst.foo.com +$ ping6 -n dst.foo.com .Ed .Pp The following will probe hostnames for all nodes on the network link attached to @@ -410,13 +410,13 @@ The address is named the link-local all-node multicast address, and the packet would reach every node on the network link. .Bd -literal -offset indent -ping6 -w ff02::1%wi0 +$ ping6 -w ff02::1%wi0 .Ed .Pp The following will probe addresses assigned to the destination node, .Li dst.foo.com . .Bd -literal -offset indent -ping6 -a agl dst.foo.com +$ ping6 -a agl dst.foo.com .Ed .Sh SEE ALSO .Xr netstat 1 , |