Linux C/C++編程手冊查閱方法

Linux Programmer's Manual & User Commandshtml

https://www.kernel.org/doc/man-pages/ 搜索框輸入epoll調用搜索引擎查找node

在線搜索查看man手冊(好比查epoll),能夠直接收藏,方便下次點擊搜索:python

http://global.bing.com/search?q=site:man7.org epolllinux

The Linux Kernel APIc++

https://www.kernel.org/doc/htmldocs/kernel-api/git

The GNU C Librarygithub

http://www.gnu.org/software/libc/manual/html_node/shell

使用man/info查看函數手冊:vim

man epoll(Tab補全) 或 man -k epollapi

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

相關文章
相關標籤/搜索