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

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.

主站蜘蛛池模板: 渝北区| 建昌县| 巩留县| 宁阳县| 驻马店市| 中山市| 濮阳县| 唐河县| 文成县| 万全县| 宁明县| 漯河市| 托克逊县| 屯昌县| 樟树市| 比如县| 中牟县| 顺义区| 清丰县| 和硕县| 长兴县| 内黄县| 绥德县| 怀仁县| 新蔡县| 西贡区| 梨树县| 新兴县| 敦煌市| 屏边| 遵义县| 曲周县| 黑山县| 辽宁省| 大丰市| 青田县| 义乌市| 四平市| 游戏| 莫力| 察雅县|