Linux Programmer's Manual & User Commands
https://www.kernel.org/doc/man-pages/ 搜索框输入epoll调用搜索引擎查找
在线搜索查看man手册(比如查epoll),可以直接收藏,方便下次点击搜索:
http://global.bing.com/search?q=site:man7.org epoll
The Linux Kernel API
https://www.kernel.org/doc/htmldocs/kernel-api/
The GNU C Library
http://www.gnu.org/software/libc/manual/html_node/
使用man/info查看函数手册:
man epoll(Tab补全) 或 man -k epoll
man -k sleep 查看包含sleep的手册
man -f sleep 查看名为sleep的手册(多个序号)
man -a sleep 查看所有名为sleep的帮助信息
man 1 sleep 查看序号1的sleep
man 3 sleep 查看序号2的sleep
把man或info的信息存为文本文件:
man epoll | col -b > epoll.txt
info epoll -o epoll.txt -s
http://man7.org/linux/man-pages/man1/man.1.html
下表显示了手册的 章节 号及其包含的手册页类型:
1 可执行程序或 shell 命令
2 系统调用(内核提供的函数)
3 库调用(程序库中的函数)
4 特殊文件(通常位于 /dev)
5 文件格式和规范,如 /etc/passwd
6 游戏
7 杂项(包括宏包和规范,如 man(7), groff(7))
8 系统管理命令(通常只针对 root 用户)
9 内核例程 [非标准]
比方说 open 这个内核提供的函数位置就在:
http://www.man7.org/linux/man-pages/man2/open.2.html
C++函数手册:
在线手册:
http://gcc.gnu.org/onlinedocs/
http://www.cplusplus.com/reference/
离线手册:
sudo apt-get -y install libstdc++6-4.6-doc
file:///usr/share/doc/libstdc++6-4.6-doc/libstdc++/html/index.html
在线搜索:
http://global.bing.com/search?q=site:cplusplus.com vector
像man一样查看手册cppman:
https://github.com/aitjcize/cppman
sudo apt-get install python-pip vim
sudo pip install cppman
cppman cout
cppman用法类似man,查询时能自动从cplusplus.com下载对应内容并转换成man pages.
cppman -c 从cplusplus.com上下载所有手册,耗时较长,但方便离线查看,不过一般是不需要的.
如果你喜欢IDE或者想把IDE当个备胎用的话,Linux上推荐Qt Creator。