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

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.
主站蜘蛛池模板: 长垣县| 泰宁县| 虞城县| 宁安市| 东乡县| 通山县| 获嘉县| 磐安县| 额尔古纳市| 泾川县| 澄江县| 余干县| 虎林市| 雷山县| 南开区| 吉首市| 安西县| 太白县| 万载县| 东乡族自治县| 门头沟区| 溆浦县| 思南县| 成安县| 邢台市| 五大连池市| 修文县| 天峨县| 内江市| 泗洪县| 苏州市| 革吉县| 霍山县| 凤庆县| 那曲县| 哈密市| 湄潭县| 遂宁市| 湘潭市| 屯留县| 紫阳县|