Changeset View
Changeset View
Standalone View
Standalone View
usr.bin/man/man.1
Show First 20 Lines • Show All 351 Lines • ▼ Show 20 Lines | |||||
.Bl -tag -width indent -compact | .Bl -tag -width indent -compact | ||||
.It Pa /etc/man.conf | .It Pa /etc/man.conf | ||||
System configuration file. | System configuration file. | ||||
.It Pa /usr/local/etc/man.d/*.conf | .It Pa /usr/local/etc/man.d/*.conf | ||||
Local configuration files. | Local configuration files. | ||||
.El | .El | ||||
.Sh EXIT STATUS | .Sh EXIT STATUS | ||||
.Ex -std | .Ex -std | ||||
.Sh EXAMPLES | |||||
Show the manual page for | |||||
.Xr stat 2 : | |||||
.Bd -literal -offset indent | |||||
$ man 2 stat | |||||
.Ed | |||||
.Pp | |||||
Show all manual pages for | |||||
.Ql stat . | |||||
.Bd -literal -offset indent | |||||
$ man -a stat | |||||
.Ed | |||||
.Pp | |||||
List manual pages which match the regular expression either in the title or in | |||||
the body: | |||||
.Bd -literal -offset indent | |||||
$ man -k '\e<copy\e>.*archive' | |||||
gbe: This example leads to 'apropos: nothing appropriate'. | |||||
yuripvUnsubmitted Not Done Inline Actionsseems to work for me: $ man -k '\<copy\>.*archive' cpio, bsdcpio(1) - copy files to and from archives yuripv: seems to work for me:
```
$ man -k '\<copy\>.*archive'
cpio, bsdcpio(1) - copy files to and… | |||||
gbeUnsubmitted Not Done Inline ActionsThats a little strange, on -CURRENT I get $ man -k '\<copy\>.*archive' and on -STABLE I get gbe: Thats a little strange, on -CURRENT I get
$ man -k '\<copy\>.*archive'
cpio, bsdcpio(1)… | |||||
fernapeAuthorUnsubmitted Done Inline ActionsIn current: [fernape@vm-current ~]$ man -k '\<copy\>.*archive' cpio, bsdcpio(1) - copy files to and from archives But in 12.1-RELEASE $ man -k '\<copy\>.*archive' bsdcpio, cpio(1) - copy files to and from archives cpio, bsdcpio(1) - copy files to and from archives It seems in 12.1 and 12-STABLE the whatis(1) database has duplicates. One for bsdcpio first and one with cpio first. $ man -w cpio bsdcpio /usr/share/man/man1/cpio.1.gz /usr/share/man/man1/bsdcpio.1.gz $ cmp /usr/share/man/man1/cpio.1.gz /usr/share/man/man1/bsdcpio.1.gz $ It looks to me like it was fixed somewhere in -CURRENT. fernape: In current:
```
[fernape@vm-current ~]$ man -k '\<copy\>.*archive'
cpio, bsdcpio(1) - copy… | |||||
.Ed | |||||
.Pp | |||||
Show the manual page for | |||||
.Xr ls 1 | |||||
and use | |||||
.Xr cat 1 | |||||
as pager: | |||||
.Bd -literal -offset indent | |||||
$ man -P cat ls | |||||
.Ed | |||||
.Pp | |||||
Show the location of the | |||||
.Xr ls 1 | |||||
manual page: | |||||
.Bd -literal -offset indent | |||||
$ man -w ls | |||||
.Ed | |||||
.Pp | |||||
.Sh SEE ALSO | .Sh SEE ALSO | ||||
.Xr apropos 1 , | .Xr apropos 1 , | ||||
.Xr intro 1 , | .Xr intro 1 , | ||||
.Xr mandoc 1 , | .Xr mandoc 1 , | ||||
.Xr manpath 1 , | .Xr manpath 1 , | ||||
.Xr whatis 1 , | .Xr whatis 1 , | ||||
.Xr intro 2 , | .Xr intro 2 , | ||||
.Xr intro 3 , | .Xr intro 3 , | ||||
Show All 9 Lines |
This example leads to 'apropos: nothing appropriate'.