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

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.

主站蜘蛛池模板: 余江县| 揭阳市| 同江市| 五家渠市| 南康市| 紫金县| 六枝特区| 大化| 长汀县| 罗定市| 汉寿县| 黄平县| 乌恰县| 襄汾县| 包头市| 涿州市| 桦南县| 唐海县| 澜沧| 息烽县| 无棣县| 博野县| 青铜峡市| 大同县| 盐山县| 仪陇县| 桃源县| 龙井市| 兰西县| 麟游县| 乾安县| 东兴市| 隆德县| 井冈山市| 迁西县| 江西省| 江门市| 股票| 卢氏县| 丽江市| 甘肃省|