1 00:00:07,165 --> 00:00:09,330 - So we have seen men, we have seen pinfo, 2 00:00:09,330 --> 00:00:11,373 and do you believe it? There's more. 3 00:00:12,224 --> 00:00:13,057 So what else is there? 4 00:00:13,057 --> 00:00:15,600 Let me show you an overview of help systems. 5 00:00:15,600 --> 00:00:19,140 Man is the primary source for getting information, 6 00:00:19,140 --> 00:00:22,650 and I would always advise use man, not Google. 7 00:00:22,650 --> 00:00:25,609 The thing with Google is that often you find 8 00:00:25,609 --> 00:00:27,491 outdated information or information 9 00:00:27,491 --> 00:00:29,720 that was written for a different distribution. 10 00:00:29,720 --> 00:00:32,340 Don't use it, man has been developed for your distribution, 11 00:00:32,340 --> 00:00:34,500 so it should always be accurate. 12 00:00:34,500 --> 00:00:37,620 We have seen pinfo, and earlier we have already seen 13 00:00:37,620 --> 00:00:42,030 command --help, which provides short usage information. 14 00:00:42,030 --> 00:00:45,000 What I would advise, if you already know the command, 15 00:00:45,000 --> 00:00:47,460 and you are just looking for the appropriate option, 16 00:00:47,460 --> 00:00:49,530 use command --help. 17 00:00:49,530 --> 00:00:51,597 If you don't know the command, 18 00:00:51,597 --> 00:00:54,960 and you want to investigate what it is doing, use man. 19 00:00:54,960 --> 00:00:57,794 Apart from that, there is /usr/share/doc. 20 00:00:57,794 --> 00:01:00,960 /usr/share/doc contains additional help for some commands. 21 00:01:00,960 --> 00:01:03,270 In some cases, it is very useful. 22 00:01:03,270 --> 00:01:07,110 In other cases, it is relatively useless, 23 00:01:07,110 --> 00:01:10,170 and it's only giving you some legal stuff. 24 00:01:10,170 --> 00:01:12,150 And then there is tldr, 25 00:01:12,150 --> 00:01:17,150 which is relatively new, and it shows commands use examples. 26 00:01:17,250 --> 00:01:19,645 Let's have a look at these last two, 27 00:01:19,645 --> 00:01:20,813 because we haven't seen them yet. 28 00:01:22,500 --> 00:01:24,240 Of these additional help systems, 29 00:01:24,240 --> 00:01:28,110 we have already seen man, pinfo, and command --help. 30 00:01:28,110 --> 00:01:31,140 Let's have a quick look at /usr/share/doc. 31 00:01:31,140 --> 00:01:34,645 So what do we find in /usr/share/doc? 32 00:01:34,645 --> 00:01:37,377 Well, we find subdirectories. 33 00:01:37,377 --> 00:01:40,860 Subdirectories for additional packages and programs. 34 00:01:40,860 --> 00:01:45,860 So, if I am picking out anything random, lzo for instance, 35 00:01:47,569 --> 00:01:49,083 what is lzo? I have no idea. 36 00:01:50,157 --> 00:01:52,808 And the thing is that if you look at the contents 37 00:01:52,808 --> 00:01:54,473 of this /usr/share/doc, 38 00:01:54,473 --> 00:01:57,030 it's not going to help us very much either. 39 00:01:57,030 --> 00:02:00,270 These are just some mandatory files 40 00:02:00,270 --> 00:02:02,430 with authors, news, and thanks. 41 00:02:02,430 --> 00:02:06,120 The news typically will show you, well, 42 00:02:06,120 --> 00:02:09,750 news about the package. Use get if you want to read it, 43 00:02:09,750 --> 00:02:12,240 and there you can see it's a change log. 44 00:02:12,240 --> 00:02:15,660 Now, is there anything else that we can check right here? 45 00:02:15,660 --> 00:02:19,890 Let me see. Let's have a look at dos2unix, for instance. 46 00:02:19,890 --> 00:02:22,020 And what do we see in dos2unix? 47 00:02:22,020 --> 00:02:24,480 Hey, that's an interesting one, we see a file 48 00:02:24,480 --> 00:02:27,540 with the name htm, .htm. 49 00:02:27,540 --> 00:02:31,020 ls -l, ls -l in this case is convenient 50 00:02:31,020 --> 00:02:36,020 because it shows me file size. 34 kilobyte in an html file. 51 00:02:36,750 --> 00:02:39,270 That means that it is very likely that this one 52 00:02:39,270 --> 00:02:42,630 contains some useful additional documentation, 53 00:02:42,630 --> 00:02:45,600 and that is the reason why I wanted to show you 54 00:02:45,600 --> 00:02:47,250 this /usr/share/doc. 55 00:02:47,250 --> 00:02:51,420 In some cases, it contains useful additional information. 56 00:02:51,420 --> 00:02:53,280 And I would say, if you're desperate, 57 00:02:53,280 --> 00:02:56,430 you really don't know how to use this command, check it out. 58 00:02:56,430 --> 00:02:59,820 Maybe it contains something, no promises though. 59 00:02:59,820 --> 00:03:03,660 The other command is tldr, let me type tldr, 60 00:03:03,660 --> 00:03:07,050 and oh no, I'm getting tldr command not found. 61 00:03:07,050 --> 00:03:10,050 Why is that? That is because it's relatively new. 62 00:03:10,050 --> 00:03:14,227 Now, I can give it a try and use sudo dnf install tldr 63 00:03:15,450 --> 00:03:17,040 to install the package 64 00:03:17,040 --> 00:03:20,850 if it is available from the repositories. 65 00:03:20,850 --> 00:03:25,380 And, oh boy on CentOS, it's not available at all. 66 00:03:25,380 --> 00:03:27,090 How about Ubuntu? 67 00:03:27,090 --> 00:03:30,450 On Ubuntu also, you will probably have to install it. 68 00:03:30,450 --> 00:03:32,643 Sudo apt install tldr, 69 00:03:33,600 --> 00:03:34,740 And there we go. 70 00:03:34,740 --> 00:03:36,900 And we can see that on this Ubuntu system, 71 00:03:36,900 --> 00:03:39,390 it was already available. 72 00:03:39,390 --> 00:03:44,390 And the thing in this tldr is that tldr can help you 73 00:03:44,670 --> 00:03:47,550 providing additional documentation. 74 00:03:47,550 --> 00:03:50,250 The problem is that the additional documentation 75 00:03:50,250 --> 00:03:52,140 must have been written. 76 00:03:52,140 --> 00:03:57,140 So let me use tldr on ss, ss is for socket statistics, 77 00:03:57,870 --> 00:04:00,960 and the idea is that if you have a valid entry, 78 00:04:00,960 --> 00:04:03,000 you get command line usage. 79 00:04:03,000 --> 00:04:06,510 But here I'm just getting no tldr entry, 80 00:04:06,510 --> 00:04:08,910 and that is probably because this Ubuntu version 81 00:04:08,910 --> 00:04:10,170 is pre release. 82 00:04:10,170 --> 00:04:12,900 Don't rely on tldr too much, 83 00:04:12,900 --> 00:04:16,890 but if it exists it can be very useful. 84 00:04:16,890 --> 00:04:20,730 So go check it out, but continue and use man 85 00:04:20,730 --> 00:04:22,863 as your primary source of information.