官术网_书友最值得收藏!

The man page

The whatis command gives you a brief description of what a command does; however, it doesn't teach you how to use a command. For that, you can use the man pages.

The man page is a manual page that has proper documentation to help you understand how to use a command. The same as when you buy a new phone, you get a manual that shows you how to use your phone and how to update your software on your phone, etc.

In general, if you want to read the man page of a command, you can run:

man command_name

For example, if you want to view the man page of the touch command, you can run the man touch command:

elliot@ubuntu-linux:~$ man touch

Figure 1: touch man page

As you can see in the preceding screenshot, the touch man page shows you how to use the command, and it also lists and explains all the command options.

Table 9 shows you how to move around while browsing man pages.

I can't stress enough the importance of man pages. They can be your best friend in the darkest moments, trust me!

You should also know that there is a man page for man itself:

elliot@ubuntu-linux:~$ man man

It describes how to use man pages.

主站蜘蛛池模板: 金昌市| 盐山县| 惠水县| 江油市| 稻城县| 大关县| 兰西县| 自贡市| 祥云县| 嘉义市| 高陵县| 敦煌市| 镇巴县| 桐梓县| 武城县| 香河县| 柳州市| 托克托县| 屯门区| 商都县| 吴旗县| 龙海市| 沙坪坝区| 稻城县| 郧西县| 三亚市| 义马市| 惠安县| 绥阳县| 东乌| 正定县| 曲松县| 灯塔市| 华亭县| 盐亭县| 方正县| 海宁市| 宜兰县| 黄大仙区| 五原县| 仪征市|