1、操作平台:Deepin Linux


2、关于 manpage 不全问题


如果使用man命令查看C库函数时发现没有帮助文档,则此时说明系统 manpage 不全!
首先使用 sudo apt-get update 更新资源,更新完毕之后:


3、安装 manpage


1)、安装 C语言 库函数基本帮助文档:

$ sudo apt-get install libc-dev

$ sudo apt-get install glibc-doc

$ sudo apt-get install manpages

$ sudo apt-get install manpages-de

$ sudo apt-get install manpages-de-dev

$ sudo apt-get install manpages-dev

2)、安装 POSIX 函数帮助文档:

$ sudo apt-get install manpages-posix

$ sudo apt-get install manpages-posix-dev

3)、安装内核函数文档:

$ sudo apt-get install linux-doc

$ sudo apt-get install libcorelinux-dev

4)、安装 C++ 帮助文档:

$ sudo apt-get install libstdc++-7-dev

$ sudo apt-get install libstdc++-7-doc

或者直接下载 C++ 帮助文档,然后把文件拷贝到 /usr/share/man/man3

当然!对于 manpage 可以直接一条命令:

$ sudo apt-get install manpages*

4、关于 manpage 颜色


1)、在家目录下的 .bashrc 中加入下面代码来实现调色:

export <font face = "Courier" size = 5 color = "#a52a2a">LESS_TERMCAP_mb=$'\E[01;32m'
export <font face = "Courier" size = 5 color = "#a52a2a">LESS_TERMCAP_md=$'\E[01;36m'   # man description
export <font face = "Courier" size = 5 color = "#a52a2a">LESS_TERMCAP_me=$'\E[0m'
export <font face = "Courier" size = 5 color = "#a52a2a">LESS_TERMCAP_so=$'\E[01;32m'
export <font face = "Courier" size = 5 color = "#a52a2a">LESS_TERMCAP_se=$'\E[0m' 
export <font face = "Courier" size = 5 color = "#a52a2a">LESS_TERMCAP_us=$'\E[01;32m'  # underly select  
export <font face = "Courier" size = 5 color = "#a52a2a">LESS_TERMCAP_ue=$'\E[0m' 

目前只知道 b 为 bold,o 为 option

2)、重新启动终端

GitHub 加速计划 / li / linux-dash
10
2
下载
A beautiful web dashboard for Linux
最近提交(Master分支:18 天前 )
186a802e added ecosystem file for PM2 5 年前
5def40a3 Add host customization support for the NodeJS version 5 年前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐