How to use "man" effectively in the development of Linux
2010-10-12 22:25
711 查看
man is the system's manual pager.
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 conventions),
e.g. man(7), groff(7)
8 System administration commands (usually only for root)
9 Kernel routines [Non standard]
If you don't install man(2/3), please run "sudo apt-get install manpages-dev".
man 2/3 is very useful, for example:
1) man 2 write
WRITE(2) Linux Programmer's Manual WRITE(2)
NAME
write - write to a file descriptor
SYNOPSIS
#include <unistd.h>
ssize_t write(int fd, const void *buf, size_t count);
DESCRIPTION
.......
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 conventions),
e.g. man(7), groff(7)
8 System administration commands (usually only for root)
9 Kernel routines [Non standard]
If you don't install man(2/3), please run "sudo apt-get install manpages-dev".
man 2/3 is very useful, for example:
1) man 2 write
WRITE(2) Linux Programmer's Manual WRITE(2)
NAME
write - write to a file descriptor
SYNOPSIS
#include <unistd.h>
ssize_t write(int fd, const void *buf, size_t count);
DESCRIPTION
.......
相关文章推荐
- How can I set the background of UITableView (the tableview style is "Grouped") to use an image?
- How to Use `strace` to Trace the System Call in Linux
- How to check the usage of net ports in linux?
- "How to use QThread in the right way (Part 1)"
- How to let "test2.c" use the variable in "test1.c"
- How to change the output color of echo in Linux
- How to use the pointer of function in a class?
- iOS 后台定位审核被拒How to clarify the purpose of its use in the location modal?
- iOS 后台定位审核被拒How to clarify the purpose of its use in the locatio
- how to use the mathmatical constant "e" in conjunction with a vector
- The best manual of how to use "The easiest Xdebug" addon for Firefox
- How to Use the BASH "for" Loop in Shell Scripts
- How to use Events in the Context of C#
- How to count the number of threads in a process on Linux
- How can I force Python's file.write() to use the same newline format in Windows as in Linux (“\r\n”
- HOW TO: Change the Owner of a User-Defined Data Type That Is in Use in SQL Server 2000
- the diary of how to backup one more files in linux
- How to Use the Dynamic Link Library in C++ Linux (C++调用Delphi写的.so文件)
- How many files in the "res" of the famous IM app.
- How to correctly use the extern keyword in C