Suchart.Blog –>

Help me!



man – an interface to the on-line reference manuals

# man [section] command_name

# man man

MAN(1) Manual pager utils MAN(1)

man – an interface to the on-line reference manuals

man [-c|-w|-tZ] [-H[browser]] [-T[device]] [-X[dpi]] [-adhu7V] [-i|-I] [-m system[,…]] [-L locale] [-p string]
[-C file] [-M path] [-P pager] [-r prompt] [-S list] [-e extension] [–warnings [warnings]] [[section]
page …] …
man -l [-7] [-tZ] [-H[browser]] [-T[device]] [-X[dpi]] [-p string] [-P pager] [-r prompt] [–warnings[warnings]]
file …
man -k [apropos options] regexp …
man -f [whatis options] page …

man is the system’s manual pager. Each page argument given to man is normally the name of a program, utility or
function. The manual page associated with each of these arguments is then found and displayed. A section, if pro-
vided, will direct man to look only in that section of the manual. The default action is to search in all of the
available sections, following a pre-defined order and to show only the first page found, even if page exists in
several sections.

The table below shows the section numbers of the manual followed by the types of pages they contain.

1 Executable programs or shell commands
2 System calls (functions provided by the kernel)
3 Library calls (functions within program libraries)
4 Special files (usually found in /dev)
5 File formats and conventions eg /etc/passwd
6 Games
7 Miscellaneous (including macro packages and conven-
tions), e.g. man(7), groff(7)
8 System administration commands (usually only for root)
9 Kernel routines [Non standard]

# man passwd

PASSWD(1) User Commands PASSWD(1)

passwd – change user password

passwd [options] [LOGIN]

group(5), passwd(5), shadow(5).


# man 5 passwd

PASSWD(5) File Formats and Conversions PASSWD(5)

passwd – the password file

/etc/passwd contains one line for each user account, with seven fields delimited by colons (“:”). These fields are:


G –> ไปที่บรรทัดสุดท้าย

g –> ไปที่บรรทัดแรก

/search_pattern –> ค้นหา หาต่อไปเรื่อย กด n


info – read Info documents

# info command_name

pinfo – curses based lynx-style info browser

# pinfo command_name

help – These shell commands are defined internally (builtin shell command)

# help

# help builtin_command

# help if
if: if COMMANDS; then COMMANDS; [ elif COMMANDS; then COMMANDS; ]… [ else COMMANDS; ] fi
The `if COMMANDS’ list is executed. If its exit status is zero, then the
`then COMMANDS’ list is executed. Otherwise, each `elif COMMANDS’ list is
executed in turn, and if its exit status is zero, the corresponding
`then COMMANDS’ list is executed and the if command completes. Otherwise,
the `else COMMANDS’ list is executed, if present. The exit status of the
entire construct is the exit status of the last command executed, or zero
if no condition tested true.

mycommand -h

mycommand –help


ให้ความเห็น »


RSS feed for comments on this post. TrackBack URI


Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  เปลี่ยนแปลง )

Google+ photo

You are commenting using your Google+ account. Log Out /  เปลี่ยนแปลง )

Twitter picture

You are commenting using your Twitter account. Log Out /  เปลี่ยนแปลง )

Facebook photo

You are commenting using your Facebook account. Log Out /  เปลี่ยนแปลง )


Connecting to %s


%d bloggers like this: