Linux - Find Files in Linux (find, whereis)

preview_player
Показать описание

To find files and configurations in Linux you can use the find and whereis commands.

Whereis who’s you the folders where data for applications are stored. Find allows you to search for files and folders on the system.

Whereis

whereis php – shows where PHP files are stored.
You can run whereis from any directory and do not need to use sudo.
Find

Find allows you to search your system for files and folders. If you receive permission issues or an odd response try using sudo.
-name – case sensitive search
-iname – case insensitive search
-user – searches based on user owner
find -user ‘bob’
-cmin – searches based on time since a file was modified
find -cmin -10
Рекомендации по теме
Комментарии
Автор

Seriously Eli, thank you so much for this. I'm loving this series.. it's great to see someone who is actually explaining Linux as a normal guy not some stuck up dev... thanks again man!

awhooley
Автор

HI Eli - I used to follow your channel years ago, learn a lot from you, but contents of your channel changed after you came back from a road trip. Last I watched your video, you were dropping f-bomb, more power to you but not the stuff I want to watch on YouTube. Today, so good to see you talking about technology again.

mustafadarrar
Автор

Good to see you doing instructional videos again!

gh
Автор

Hello, Eli greetings from Ecuador, thanks you for all your interesting work and contribution to the knowledge of many people around the world.

soldadopreciso
Автор

Not to oversimplify it but just remember your config files are always found in the /etc folder and to find your last modified files including hidden files use ls -lrt ( just food for thought)

tonebaxter
Автор

thanks just what l wanted to know, are the quotation marks neccessary, mine seems to work without them

debeeriz
Автор

I like your videos. Keep up the good work!

samthomas
Автор

If you need to copy a file from anywhere in the system to cwd, then do cp $(locate file.txt) . You can also pretty much use any command with this syntax like chmod or even change the locate to a find.

camb
Автор

A very very very useful tutorial...

💯💯💯💯💯

SkyFly
Автор

Ya know Eli, I could have used this like 10 years ago when I first found your videos ;) Instead I took the "Try Harder" route.

wickedwebdesignri
Автор

Aren't .ini files a windows thing? I've seen them in my Win 10 box but not in my Linux Boxes.

bradolson
Автор

Important video. A bit too long but does the job

ukaszwaligorski
Автор

Protip: do a compgen -c to list all available binaries

camb