Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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, e.g., split input up into an array in the Bash shell.

However, the whatis command displays only this information:

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).

How do I read the man page of the read command used in the terminal?

like image 237
Shuzheng Avatar asked Feb 05 '23 14:02

Shuzheng


1 Answers

read is a bash buitin command. See: type read and help read

If you want to see help read in man page style: help -m read | less

like image 165
Cyrus Avatar answered Feb 07 '23 04:02

Cyrus