So, this is a really useful command, I hope I have explained it well. There's
also one more thing that I want to show you guys, so for this and I'm gonna
change directory into the /etc directory, and first I'm gonna run this command
find in the current directory, type "find . -type f -iname "*.conf""
and so the /etc directory we
discussed very briefly in one of the previous videos, that basically holds
configuration files for applications. So, the standard, at least what I've noticed with
Linux, is that configuration files usually have a .conf extension. So, if
we hit enter here we're gonna see that we get a lot of things, and that's partly
because as you can see here in etc/fonts/conf.avail there is a
file. So, this recursive which is pretty neat, but what if you don't want it to be
recursive? We can pass an extra argument here, so let's take the exact same thing
"find" in the current directory, "-maxdepth" is gonna be "1" and follow with "-type f" and
"-iname "*.conf"" So, now you can see that the only things that are returned, that
looked a little confusing, the prompt was right here, so everything over this
that's from the last command so it was recursive but we controlled the depth
with this one. So, what you can do, you can either you know go one level down, or if
you want to max depth of two you can do that. These are all ways of
modifying defined to really hone in on what you're looking for, and you can pass
multiple arguments. So, let's only look for configuration files that are over 50K,
and I don't know if we're going to find one, no we're not. Let's remove the max
depth so that it will be a recursive, and 10K?
There we go. So, we found a couple, this file is more than 10K. So, again
that's how, that's how we use the find command, and this is a really powerful
tool. I'm convinced that you guys, you know, if if you're using a graphical file
manager it's really not that necessary cuz you can kind of look at everything
and see so much more, but if you're working in terminal I'm confident that
this is gonna be a command that you guys are going to be able to you know hit the
ground running with. This is you know I really great and powerful tool. So, thank
you guys for watching, in the next video we're gonna be going over another really awesome
command.