您的位置:首页 > 运维架构 > Linux

linux c/c++ 帮助 help

2015-02-13 14:40 204 查看
https://www.kernel.org/doc/man-pages/ 搜索框输入epoll调用Google查找

相当于Google搜索 site:man7.org/linux/man-pages epoll ,可以直接收藏,方便下次搜索查看:

http://www.google.com.tw/#newwindow=1&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

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

Google Site在线搜索:

http://www.google.com.tw/#newwindow=1&q=site:www.cplusplus.com%2Freference%2F+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上下载所有手册,耗时较长,但方便离线查看,不过一般是不需要的.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: