Linux Crash Course - The find command

preview_player
Показать описание
In this episode of Linux Crash Course, I'll teach you the basics of the find command. The find command is a powerful command-line tool you can use in order to find just about anything in the filesystem, and with this video, you'll learn all the basics you need in order to start using it.

# LearnLinuxTV Links
🐧 Main site:

🐧 LearnLinuxTV Community:

# Support LearnLinuxTV (commission earned)
📖 Check out Jay's latest book, Mastering Ubuntu Server 4th Edition. Covers Ubuntu 22.04!

🙌 Support me on Patreon and get early access to new content!

☁️ Get $100 toward your own cloud server with Linode!

🛒 Affiliate store for Linux compatible hardware/accessories (commission earned):

💻 Check out the Tiny Pilot KVM for your Homelab (commission earned):

# About Me
🐦 Follow me on Twitter!

👨 More about me:

# Recommended evergreen videos:
💽 How to create a bootable flash drive for installing Linux

🐧 OpenSSH Guide

📖 LVM Deep-dive:

🔐 How to better secure OpenSSH:

☁️ How to create a cloud Linux server with Linode:

*📘 FAQ*

#LearnLinuxTV #Linux #LinuxTutorial
Рекомендации по теме
Комментарии
Автор

That was the most passionate "I'm really excited to tell you about it" I've ever heard in my life 0:52

박성현-lh
Автор

who up leveling there bandit rn, all jokes aside i had to watch a video how to get through a bandit level and i refuse to just go on without actually understanding what the process is so here i am, thank you for the information .

jameskiker
Автор

There is a lot to unpack in 'man find'. Thank you for your service!

blakebenner
Автор

This series is the best I've found regarding Linux! Thank you so much for that!

leythecg
Автор

Simple, but incredibly useful. Thanks!

ianperkins
Автор

First example: If you omit the starting path, the $PWD is used, so you not even have to type the dot.
`find -name *.txt` did only work incidentally, because without masking, the shell will do file name expansion, so if you happen to have one or more files matching the *.txt pattern in your current directory, the find command will see the list of expanded files. `find -name "*.txt"` instead is the thing to do, except you're sure, that there is no file matching your pattern in the current dir. Same problem in min. 21 while searching for *.log and 24 when searching for *.mp3.
Min. 9: `find -delete instead of -exec rm {} +` is superior and present in GNUs find for ages. It is able to remove empty directories as well and is much better to type.

Since find has so many options, you can talk about them for hours. I guess one of the most important options is searching for age with -mtime. I often know that I search for a file which is maybe 3 to 8 weeks old and it might be a Java file and I'm searching for, let's say, my usage of a JTable.

`find -mtime +21 -mtime -56 -name "*.java" -exec grep JTable {} + -ls`

If you don't pipe the output to grep, but use grep with exec, you can keep going using other find options. The ls gives a long file output, similar to `ls -l`.

unbekannter_Nutzer
Автор

I can't thank you enough for all your videos. Been craming to learn linux so I can use it for a big chia farm.

dancaputa
Автор

and the oscar goes I love your videos man. Keep it up.

DarthDweeb
Автор

Hey dude, you mentioned that band and said it was your 'favorite'. I thought to myself 'I gotta check this out' just to see what that band was/is about as far as their style goes.

Gotta tell ya - was not expecting that boss :)

cleightthejw
Автор

Had to sift thru to the 2:22 min mark to actually start content...othewise good video

franki
Автор

Awesome as always Jay! Extra thanks for the tips on Lacuna Coil, havent heard of them! Btw, I bought your book Mastering Ubuntu server 18.04, half way through it now and love it! Keep up the good work!

JohanEkelund
Автор

Best explanation of find ever! Thank you!

mhl
Автор

This Such a Powerful command to automate things as a Newbie.. thank you Very much!!

pitsomokhu
Автор

I'm glad this channel is here... ...

mahirfr
Автор

I've used find quite a lot but I didn't know about the exec option. It's nice to know although I dont think I'll use it very often. Nice video

ratfuk
Автор

Thank you for this! It's such an essential tool, but I actually "find" aspects of the usage of this somewhat "basic" or essential command to be a bit difficult to navigate.

gnuPirate
Автор

Thanks for that, you had good reasons for doing what you did, some people will show you how to use commands and then I think why would you want to do that, lol. I'm so glad you like making these instructional videos, you are very good at it and your helping a lot of people. Thank you.

landlocked
Автор

Thanks a lot sir.. how did I Find U on YouTube.. now that I found you.. I have learnt the usage of "find" .. Good day sir

vanitymeetstechnology
Автор

Great info, glad I was able to 'find' this :)
Ty

dragonsage
Автор

I'm loving these videos Jay. I wonder if you might take the time to address those certain concerns surrounding certain options?

joshmcneil