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

The help command

Another really useful option is --help. We will use ls again, and do a --help command. Now, man and --help work on almost every command, so you can use man ls, or ls --help, and it will always show you the help or the manual page of the program. So, after we execute the preceding command, in the following screenshot, we can see the help page for using ls, and it tells us all of the options for the ls command:

Again, it's a - or a --, and we enter the option name as we did before. On top, it shows information about what the command does, and it gives the format of the command, so it should be used in this particular format: Usage: ls. We then enter the options, and then whether we want to do anything to the file. It's very similar to the man command; sometimes, programs will not have man, and they'll just have the help command.

If we have any command or any program that we are not sure how to use, we can always just type in man and the name of the command, or the name of the command and  --help. Another useful exercise when dealing with the Terminal is that we can press the up and down arrows to go through the history of the command. So, we can switch between the  man lsls -l, and  ls --help commands through the up and down arrow keys.
主站蜘蛛池模板: 龙井市| 伊金霍洛旗| 页游| 兰州市| 宝兴县| 冀州市| 长春市| 永城市| 烟台市| 汽车| 湾仔区| 香格里拉县| 岐山县| 繁峙县| 石门县| 建阳市| 庄浪县| 沁水县| 玉树县| 武安市| 邹平县| 嘉荫县| 宝清县| 三台县| 六枝特区| 临江市| 樟树市| 绥阳县| 六盘水市| 合江县| 兴山县| 通辽市| 沿河| 讷河市| 莫力| 普安县| 通城县| 胶州市| 阳江市| 隆德县| 博客|