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

Linux C/C++编程手册查阅方法

2015-08-04 00:00 661 查看

Linux C/C++编程手册查阅方法

时间:
2015-02-28 21:37

作者:
lsgxeva

分类:
工作学习>>linux>>server

摘要:
Linux C/C++编程手册查阅方法

标签:
Linux C/C++编程手册查阅方法

提示:
文章均来自网络,版权为原作者所有,如有侵犯权益,请联络我们.

Linux Programmer's Manual & User Commands https://www.kernel.org/doc/man-pages/ 搜索框输入epoll调用Google查找
相当于Google搜索 site:man7.org/linux/man-pages epoll ,可以直接收藏,方便下次搜索查看:
http://www.google.com.hk/#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上下载所有手册,耗时较长,但方便离线查看,不过一般是不需要的.

如果你喜欢IDE或者想把IDE当个备胎用的话,Linux上推荐 Eclipse IDE for C/C++ Developers 或者 Qt Creator

来源: <http://my.oschina.net/eechen/blog/206443>

来自为知笔记(Wiz)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: