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

The man command

One of the most important commands, which is going to become handy to you in the future, is the man command. It stands for manual. The man command can be used to query and get the manual of any other command. For example, we just used the ls command to list all of the directories that exist in the current working directory:

man ls

After running this command, it will show us the manual for the ls command. And, as we can see, it's showing us that ls is used to list content, because it lists files and directories. We can also see that this command actually takes options, so it takes more options than just the ls command:

In the preceding screenshot, we can see the format of the options in Linux; it's either a - letter abbreviation, or --, and you type in the full option. So, for example, the -- all option does not ignore entries starting with a dot. If we type in or press the Enter key, the manual will just keep going down so you can read more information. These are all of the options that you can do with the command. We can see, for example, that the -l uses a long listing format. To quit this command, we just type in q, so we're out of the manual.

主站蜘蛛池模板: 搜索| 曲阳县| 双流县| 汉源县| 南华县| 犍为县| 鸡西市| 桃园市| 株洲县| 任丘市| 井冈山市| 望都县| 宁陵县| 噶尔县| 屏南县| 板桥市| 嘉兴市| 鄂州市| 奉节县| 沧源| 星子县| 长丰县| 长沙市| 东乡族自治县| 雷州市| 岳普湖县| 丰镇市| 克山县| 界首市| 济南市| 大兴区| 娱乐| 景宁| 白城市| 汪清县| 玉龙| 新晃| 鹿邑县| 濉溪县| 丹凤县| 增城市|