Find And Locate Your Files

preview_player
Показать описание
How do search for files or directories in your file system? Well, you could use the find command. You could also use the locate command.

REFERENCED:

WANT TO SUPPORT THE CHANNEL?

SOCIAL PLATFORMS:
💬 IRC: irc://freenode #distrotube

DT ON THE WEB:

FREE AND OPEN SOURCE SOFTWARE THAT I USE:

Your support is very much appreciated. Thanks, guys!
Рекомендации по теме
Комментарии
Автор

I love how you get straight to useful content.

jdjones
Автор

“Read the man page for find”
.
.
.
.
.
.
.
.
.
.
.

“You’re not gonna want to read that gigantic novel of a man page...”

🤣

torspedia
Автор

8:07 Just checked the man page, and “+” means “greater than”, not “at least”. Similarly “-” means “less than”, not “at most”. Also k is kibibytes, not kilobytes, and M is mebibytes, not megabytes. And the sizes are rounded to the specified unit. Thus, “-10M” will only match files up to 9 × 1048576 = 9437184 bytes in size, not 10 × 1048576 - 1 = 10485759 bytes as you might have been expecting.

lawrencedoliveiro
Автор

Thank you, Derek. These great CLI tools, including man pages are why I have no problem with those who insist on saying "Gnu-Linux". I pronounce the "Gnu" silently but I do always remember it. And always have time for material on the original Unix toolset.

AnzanHoshinRoshi
Автор

locate - searches a pre-made files database of the filesystem (hence updatedb to update the database beforehand)


find - makes an actual live search on the filesystem (slow on big harddrives)

NapanTR
Автор

Very good tutorial about FISH. Thank You!

evgeniyvalchev
Автор

One common idiom is feeding a list of files from find to some other command using xargs:


find «criteria» -print | xargs «cmd»



When feeding file names to another shell command, beware of shell-specials, for example spaces in filenames. Don’t forget you can also have newlines in filenames. The GNU versions of find and xargs have the option to use nulls as pathname separators, which avoids this problem:

find «criteria» -print0 | xargs -0 «cmd»

lawrencedoliveiro
Автор

Hello from France !!! Thanks for your amazing videos Derek ! Keep this great work ! btw, I use Arch (... from Manjaro)

ThomG
Автор

Derek, updatedb is usually automatically updated with a cron job on a daily basis.

richardravich
Автор

This reminds me of Computer Basics (Chapter 6: Finding Files, Pages 153-180).

annielam
Автор

What is the equivalent on Linux distros for the software you can install on Windows called "Everything", which is the ultimate instantaneous file search app?

encapsulatio
Автор

What is the fish theme and color scheme you're using ?

OmarAhmed-ehks
Автор

Wow! Now I can locate or find all those Awesome files I can't find... What a relief.... Thanks DT
LLAP

BrucesWorldofStuff
Автор

Hey Derek, the find manpage is a perfect example why manpages suck. Take a look at tldr

grimfistgaming
Автор

'find' is good to know but I prefer more minimal syntax of 'fd'

hendrix
Автор

hey derek i have been following the channel for a while and i see that you have an opinion on many programs that are out there (various terminals, filemanagers, mediaplayers, texteditors...). so have you heard of emelfm2 what are your thoughts on it or would you try it some day?

urugulu
Автор

Finding duplicate files is easy - and there's several apps for that. But I'm looking for an app or script that will sort things in such a way that any pairs of directories with a large number of identical files are easily identified. Say I've got a directory of music, and an album got located in a number of places - but some copies of the album have extra tracks that the others don't (Japan release vs. US release, or some such...)

Tara_Li
Автор

usually what i do is execute a command afterward like find all ogg files and convert them to mp3 with ffmpeg. but for that i have a script cause i dont memorize that command...

urugulu
Автор

2:09 And you can do a case-insensitive search with -iname instead of -name. Useful if you have files transferred from other systems that end up with uppercase names (e.g. .TXT instead of .txt).

lawrencedoliveiro
Автор

A faster way to find insecure files in your system:
$ insecure='-delete'; sudo find / $insecure

bendover