Now, in this lecture, we are going to learn about the most important and very useful command, which
is fine.
So the fine command is most powerful and flexible for the surging utilities.
So it is capable of beginning your search.
And this we can see any designated and looking for a number of different parameters, including, of
course, the finding, but also the date of creation or modification.
It can also include the owner, the group permissions and sites.
So Syntex is going to be like fine and the directory option expiration.
So if I wanted to search for a file with the name Aperture to support it with nothing but the open source,
so so it will start in the root directory and I would enter it like, OK, let's start fine.
OK with the space hyphen type.
With the space hyphen, name a party to now hit enter.
So, as you can see, that it is giving nothing.
So let me find it, okay.
What I need to do here is I need to add Afia now hit enter.
So after hitting enter as you can see that fine come on.
Started at the top of the file system, which is as we all know that.
This, which is nothing but the road, OK, certainly went through every territory looking for a potato
in the filing and then listed all instances found.
So you can see that it is looking for a potato.
It is simply listing all the instances found related to a budget.
OK, so as you might imagine, a search that looks in every territory can be very slow.
So one way to speed up it to simply is to look only in the territory where you would expect to find
a file you need.
So in this case, we are looking for a configuration file so we could start the search in the territory,
which is.
It is.
OK, so let's start with that.
OK.
Control see to it and clear.
Now let's start with that zuckermann fine and the filing, which is ATC.
This will soon text and I want to type a fine name and an Apache to unhit enter.
So as you can see that this is a much quicker search only for all kinds of Apache to in the ATC territory
and it's subdirectory.
So it is also important to note that unlike some other such commands like fine display, only exact
meem matches only exact Neamat, as you could see, Apache to miss Apache to a budget to OK.
So in the file, a pachuco has an extension such as a budget to dot config like Abhijeet.
OK.
Apologies to dog.
Config files like this, so the search will not find a match because we want to search only this thing,
not from this thing, so it will remove this in the scope of searching.
OK, so we can redeem because simply we can see we can remedy this limitation by using wild cards.
So Walter Welker's so whilst nothing but they enables us to match multiple characters.
So cards come in a very few different forms.
Suppose like we are having.
OK, this, this is the wild card, this is the wild card and this is also wild card.
This is wild card and this is wild card.
So these are the wild cards which enables us to match multiple characters.
OK, so now let's look.
And it is a directory for all files that begins with a you don't have any extension.
OK, so let me erase them and then type again.
Apache is sorry.
Fine ABC type.
A.
And we are going to use multiple characters, so that is why we need to use two hyphens name.
Apache to with these wild not hit enter.
So now what it is doing here is find it the type of name badges so it is not working in this case.
So I think.
It must be like, let me.
Do it like this.
Now, this is working in this case, so this is working like you can add multiple characters by using
only one hyphen and Somoza's of Kali.
We need to use two hyphens.
That is why I was explaining you with the help of two halfpence.
But it is working fine with a single hyphen, so there is no need to use two hyphens.
OK, so now those, as you can see that the files which is containing Abargil to it, is snowing here.
OK, so this is how it is working.
OK, so when we run this particular command, we find that there is one file, which is it is a date
that falls apart party to the pattern.
OK, so when we use period followed by Willcock, the terminal looks for any extension after the filename
apology too.
So this can be a very useful technique for finding files where you don't know the file extension.
So when I run this command, I find two files that start with a passage to India.
It is a data including a particular config file.
OK, so this is how find work.
So if you want to say a project to this as a part, you do that as the file, OK, which I was talking
about.
So this is all for this lecture, guys.
I hope you understand the usefulness of fine, come on.
And I hope you will practice it in your system.
So practice is the key to success.
If you don't practice and you will forget all these commands, there's no no use of learning these things.
So practice is very important.
You need to practice in your system and just play with the commands and just things creatively.
What you can do with these commands and what, uh, how you can take use of these commands.
So, guys, this is all for this lecture.
So we are done with the finding.
Come on.
So from the next lecture on which we are going to start with some other commands so that we can go most
of the commands before going deep into the Linux operating system.
So it will be very easy for us to understand each and every concept using terminal.
So, guys, this is all for this lecture.
I hope you guys enjoy it.
And thank you for watching this lecture.