1 00:00:00,300 --> 00:00:05,970 Now, in this lecture, we are going to learn about the most important and very useful command, which 2 00:00:05,970 --> 00:00:06,440 is fine. 3 00:00:07,110 --> 00:00:13,040 So the fine command is most powerful and flexible for the surging utilities. 4 00:00:13,440 --> 00:00:16,680 So it is capable of beginning your search. 5 00:00:17,220 --> 00:00:24,630 And this we can see any designated and looking for a number of different parameters, including, of 6 00:00:24,630 --> 00:00:29,490 course, the finding, but also the date of creation or modification. 7 00:00:29,940 --> 00:00:34,350 It can also include the owner, the group permissions and sites. 8 00:00:34,740 --> 00:00:40,780 So Syntex is going to be like fine and the directory option expiration. 9 00:00:41,160 --> 00:00:49,950 So if I wanted to search for a file with the name Aperture to support it with nothing but the open source, 10 00:00:50,430 --> 00:01:00,930 so so it will start in the root directory and I would enter it like, OK, let's start fine. 11 00:01:01,140 --> 00:01:05,250 OK with the space hyphen type. 12 00:01:06,370 --> 00:01:13,490 With the space hyphen, name a party to now hit enter. 13 00:01:13,930 --> 00:01:17,150 So, as you can see, that it is giving nothing. 14 00:01:17,410 --> 00:01:19,330 So let me find it, okay. 15 00:01:19,360 --> 00:01:25,490 What I need to do here is I need to add Afia now hit enter. 16 00:01:25,840 --> 00:01:30,550 So after hitting enter as you can see that fine come on. 17 00:01:30,550 --> 00:01:35,920 Started at the top of the file system, which is as we all know that. 18 00:01:37,410 --> 00:01:44,970 This, which is nothing but the road, OK, certainly went through every territory looking for a potato 19 00:01:44,970 --> 00:01:49,290 in the filing and then listed all instances found. 20 00:01:49,290 --> 00:01:52,260 So you can see that it is looking for a potato. 21 00:01:52,860 --> 00:01:58,540 It is simply listing all the instances found related to a budget. 22 00:01:58,830 --> 00:02:07,230 OK, so as you might imagine, a search that looks in every territory can be very slow. 23 00:02:07,530 --> 00:02:16,500 So one way to speed up it to simply is to look only in the territory where you would expect to find 24 00:02:16,530 --> 00:02:18,340 a file you need. 25 00:02:18,900 --> 00:02:26,880 So in this case, we are looking for a configuration file so we could start the search in the territory, 26 00:02:26,880 --> 00:02:27,400 which is. 27 00:02:28,170 --> 00:02:28,590 It is. 28 00:02:28,890 --> 00:02:31,020 OK, so let's start with that. 29 00:02:32,340 --> 00:02:32,720 OK. 30 00:02:33,950 --> 00:02:37,580 Control see to it and clear. 31 00:02:37,880 --> 00:02:44,270 Now let's start with that zuckermann fine and the filing, which is ATC. 32 00:02:44,750 --> 00:02:55,050 This will soon text and I want to type a fine name and an Apache to unhit enter. 33 00:02:55,700 --> 00:03:05,060 So as you can see that this is a much quicker search only for all kinds of Apache to in the ATC territory 34 00:03:05,060 --> 00:03:06,960 and it's subdirectory. 35 00:03:07,400 --> 00:03:15,470 So it is also important to note that unlike some other such commands like fine display, only exact 36 00:03:15,470 --> 00:03:23,850 meem matches only exact Neamat, as you could see, Apache to miss Apache to a budget to OK. 37 00:03:24,940 --> 00:03:32,580 So in the file, a pachuco has an extension such as a budget to dot config like Abhijeet. 38 00:03:33,570 --> 00:03:34,220 OK. 39 00:03:35,820 --> 00:03:37,820 Apologies to dog. 40 00:03:39,270 --> 00:03:48,690 Config files like this, so the search will not find a match because we want to search only this thing, 41 00:03:48,690 --> 00:03:54,130 not from this thing, so it will remove this in the scope of searching. 42 00:03:54,530 --> 00:04:04,020 OK, so we can redeem because simply we can see we can remedy this limitation by using wild cards. 43 00:04:04,020 --> 00:04:10,260 So Walter Welker's so whilst nothing but they enables us to match multiple characters. 44 00:04:10,590 --> 00:04:14,250 So cards come in a very few different forms. 45 00:04:14,260 --> 00:04:17,300 Suppose like we are having. 46 00:04:17,310 --> 00:04:24,850 OK, this, this is the wild card, this is the wild card and this is also wild card. 47 00:04:24,900 --> 00:04:27,970 This is wild card and this is wild card. 48 00:04:27,990 --> 00:04:32,730 So these are the wild cards which enables us to match multiple characters. 49 00:04:33,030 --> 00:04:34,440 OK, so now let's look. 50 00:04:34,440 --> 00:04:42,130 And it is a directory for all files that begins with a you don't have any extension. 51 00:04:42,510 --> 00:04:48,060 OK, so let me erase them and then type again. 52 00:04:48,060 --> 00:04:49,830 Apache is sorry. 53 00:04:49,830 --> 00:04:52,890 Fine ABC type. 54 00:04:54,560 --> 00:04:55,070 A. 55 00:04:56,280 --> 00:05:02,460 And we are going to use multiple characters, so that is why we need to use two hyphens name. 56 00:05:03,810 --> 00:05:11,250 Apache to with these wild not hit enter. 57 00:05:11,940 --> 00:05:22,500 So now what it is doing here is find it the type of name badges so it is not working in this case. 58 00:05:22,510 --> 00:05:23,460 So I think. 59 00:05:24,550 --> 00:05:27,130 It must be like, let me. 60 00:05:28,210 --> 00:05:29,340 Do it like this. 61 00:05:29,410 --> 00:05:35,620 Now, this is working in this case, so this is working like you can add multiple characters by using 62 00:05:35,620 --> 00:05:39,920 only one hyphen and Somoza's of Kali. 63 00:05:39,970 --> 00:05:41,660 We need to use two hyphens. 64 00:05:41,680 --> 00:05:45,820 That is why I was explaining you with the help of two halfpence. 65 00:05:45,820 --> 00:05:50,650 But it is working fine with a single hyphen, so there is no need to use two hyphens. 66 00:05:50,950 --> 00:05:58,370 OK, so now those, as you can see that the files which is containing Abargil to it, is snowing here. 67 00:05:58,540 --> 00:06:02,590 OK, so this is how it is working. 68 00:06:02,800 --> 00:06:09,570 OK, so when we run this particular command, we find that there is one file, which is it is a date 69 00:06:09,580 --> 00:06:11,760 that falls apart party to the pattern. 70 00:06:11,980 --> 00:06:22,540 OK, so when we use period followed by Willcock, the terminal looks for any extension after the filename 71 00:06:22,540 --> 00:06:23,360 apology too. 72 00:06:23,620 --> 00:06:30,810 So this can be a very useful technique for finding files where you don't know the file extension. 73 00:06:31,270 --> 00:06:36,100 So when I run this command, I find two files that start with a passage to India. 74 00:06:36,370 --> 00:06:39,130 It is a data including a particular config file. 75 00:06:40,000 --> 00:06:43,020 OK, so this is how find work. 76 00:06:43,510 --> 00:06:50,350 So if you want to say a project to this as a part, you do that as the file, OK, which I was talking 77 00:06:50,350 --> 00:06:50,720 about. 78 00:06:51,100 --> 00:06:52,870 So this is all for this lecture, guys. 79 00:06:52,870 --> 00:06:56,470 I hope you understand the usefulness of fine, come on. 80 00:06:56,470 --> 00:07:00,400 And I hope you will practice it in your system. 81 00:07:00,610 --> 00:07:02,680 So practice is the key to success. 82 00:07:02,680 --> 00:07:11,410 If you don't practice and you will forget all these commands, there's no no use of learning these things. 83 00:07:11,440 --> 00:07:12,900 So practice is very important. 84 00:07:13,150 --> 00:07:20,050 You need to practice in your system and just play with the commands and just things creatively. 85 00:07:20,380 --> 00:07:26,420 What you can do with these commands and what, uh, how you can take use of these commands. 86 00:07:26,710 --> 00:07:28,800 So, guys, this is all for this lecture. 87 00:07:29,140 --> 00:07:31,150 So we are done with the finding. 88 00:07:31,150 --> 00:07:31,710 Come on. 89 00:07:31,990 --> 00:07:37,210 So from the next lecture on which we are going to start with some other commands so that we can go most 90 00:07:37,210 --> 00:07:41,140 of the commands before going deep into the Linux operating system. 91 00:07:41,140 --> 00:07:45,890 So it will be very easy for us to understand each and every concept using terminal. 92 00:07:46,150 --> 00:07:48,070 So, guys, this is all for this lecture. 93 00:07:48,070 --> 00:07:49,180 I hope you guys enjoy it. 94 00:07:49,180 --> 00:07:50,880 And thank you for watching this lecture.