<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://hackepedia.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mr8M9x</id>
	<title>Hackepedia - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://hackepedia.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mr8M9x"/>
	<link rel="alternate" type="text/html" href="https://hackepedia.org/index.php?title=Special:Contributions/Mr8M9x"/>
	<updated>2026-05-08T15:39:00Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://hackepedia.org/index.php?title=Manual&amp;diff=3849</id>
		<title>Manual</title>
		<link rel="alternate" type="text/html" href="https://hackepedia.org/index.php?title=Manual&amp;diff=3849"/>
		<updated>2007-09-19T22:27:22Z</updated>

		<summary type="html">&lt;p&gt;Mr8M9x: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Simple example to type at your [[shell]] prompt:&lt;br /&gt;
 $ man 1 intro&lt;br /&gt;
This brings up the man page for intro(1). You can use your spacebar to go down a page, and &amp;quot;q&amp;quot; for quit.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Most UNIX systems have online manual pages.  &lt;br /&gt;
&lt;br /&gt;
 MAN(1)                     OpenBSD Reference Manual                     MAN(1)&lt;br /&gt;
 NAME&lt;br /&gt;
     man - display the on-line manual pages&lt;br /&gt;
 SYNOPSIS&lt;br /&gt;
     man [-achw] [-C file] [-M path] [-m path] [-S subsection] [-s section]&lt;br /&gt;
         [section] name [...]&lt;br /&gt;
     man -f command&lt;br /&gt;
     man -k keyword&lt;br /&gt;
 DESCRIPTION&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The types of manpages have sections which they are grouped in.  Here is the manual page layout of [[BSD]]:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;Section 1 : General commands (tools and utilities)&lt;br /&gt;
; Section 2 : System calls and error numbers&lt;br /&gt;
; Section 3 : Library functions, especially for C and Tk&lt;br /&gt;
; Section 4  : Special files and hardware support&lt;br /&gt;
; Section 5 : File formats, especially configuration files&lt;br /&gt;
; Section 6 : Games&lt;br /&gt;
; Section 7 : Miscellaneous information pages&lt;br /&gt;
; Section 8 : System maintenance and operation commands&lt;br /&gt;
; Section 9 : Kernel internals&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When someone tells you to run &amp;quot;man 6 tetris&amp;quot;, that means that you should read the tetris manpage found in section 6 of the manpages.  Sometimes the same manpage name exists, but in different sections. One example is the fstat manpage it exists in sections 1 and 2.  The lower number sections take precedence over higher numbered sections.  Thus, to see the manpage for fstat in section 2 you would type:&lt;br /&gt;
 $ man 2 fstat&lt;br /&gt;
&lt;br /&gt;
Similarely functions, [[syscall]]s or commands are sometimes mentioned with the section of manpages in brackets behind them like so:  &#039;&#039;&#039;fstat(2)&#039;&#039;&#039;, you&#039;ll see this mentioned a lot in this wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Creating windex ===&lt;br /&gt;
&lt;br /&gt;
If you&#039;re looking for a man page and get the following:&lt;br /&gt;
 # man -k snoop&lt;br /&gt;
 /usr/share/man/windex: No such file or directory&lt;br /&gt;
&lt;br /&gt;
It means you have yet to create your Index:&lt;br /&gt;
 # [[variables|/usr/bin/catman]] -w &lt;br /&gt;
 #&lt;br /&gt;
&lt;br /&gt;
=== Searching for Manual Pages ===&lt;br /&gt;
&lt;br /&gt;
It is possible to do a keyword search in the manpage system.&lt;br /&gt;
&lt;br /&gt;
 $ man -k filesystem&lt;br /&gt;
 OpenBSD::Vstat (3p) - virtual filesystem for pkg_add(1) simulations&lt;br /&gt;
 dump (8) - filesystem backup&lt;br /&gt;
 fstab (5) - static information about the filesystems&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
Another command synonymous to man -k is apropos:&lt;br /&gt;
&lt;br /&gt;
 $ apropos archiver&lt;br /&gt;
 tar (1) - tape archiver&lt;br /&gt;
&lt;br /&gt;
Do notice that the section of the manpage is displayed in the keyword search, this is to ease viewing the particular manpage.  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;$MANPATH&amp;lt;/code&amp;gt; is used, unless something else is explicitly specified.&lt;br /&gt;
&lt;br /&gt;
=== Location of Manual Pages ===&lt;br /&gt;
&lt;br /&gt;
In [[BSD]] the default manual pages are located in /usr/share/man.  This can be changed with the MANPATH [[environment variable]]:&lt;br /&gt;
&lt;br /&gt;
 $ export MANPATH=/usr/local/man&lt;br /&gt;
 $ man ls&lt;br /&gt;
 man: no entry for ls in the manual. &lt;br /&gt;
 $ unset MANPATH&lt;br /&gt;
 $ man ls&lt;br /&gt;
 LS(1)                      &lt;br /&gt;
1000&lt;br /&gt;
OpenBSD Reference Manual                      LS(1)&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
Another manpage section can be added on to the current MANPATH:&lt;br /&gt;
&lt;br /&gt;
 $ export MANPATH=/usr/share/man:/usr/local/man&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Searching in a man page ==&lt;br /&gt;
&lt;br /&gt;
Often you will want to search a man page you are viewing for a particular keyword. You can preceed this search word with a &amp;quot;/&amp;quot;. If I wanted to see what mediaopt(ions) my sis [[NIC]] has I could do &lt;br /&gt;
&lt;br /&gt;
 /mediaopt&lt;br /&gt;
&lt;br /&gt;
while reading the sis(4) manpage I have on my system. If the first result is not what I want, I don&#039;t have to type the full search word after the first time, I can simply use&lt;br /&gt;
 &lt;br /&gt;
 /&lt;br /&gt;
&lt;br /&gt;
which is to &amp;quot;find another instance&amp;quot;.&lt;/div&gt;</summary>
		<author><name>Mr8M9x</name></author>
	</entry>
</feed>