简体   繁体   English

当只有`read(2)`出现在Bash中的`whatis`时,如何看到`read`命令的手册页?

[英]How to see man page of `read` command when only `read(2)` shows up by `whatis` in Bash?

On Ubuntu Linux 16.04 LTS, I want to see the man page of the read command used to, eg, split input up into an array in the Bash shell. 在Ubuntu Linux 16.04 LTS上,我想看到read命令的手册页,例如,将输入拆分为Bash shell中的数组。

However, the whatis command displays only this information: 但是, whatis命令仅显示以下信息:

nlykkei@nlykkei-Ubuntu:~$ whatis read
read (2)             - read from a file descriptor

But the read(2) section of the man pages only documents the system call (and the associated C function). 但是手册页的read(2)部分仅记录系统调用(以及相关的C函数)。

How do I read the man page of the read command used in the terminal? 如何阅读终端中使用的read命令的手册页?

read is a bash buitin command. read是一个bash buitin命令。 See: type read and help read 请参阅: type readhelp read

If you want to see help read in man page style: help -m read | less 如果你想看到help read手册页样式: help -m read | less help -m read | less

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM