This Tutorial explains basics of find command for Linux/Unix Operating System in minutes. It explains find command with 50 amazing examples. It’s a complete tutorial for find command.

Tutorial Topics:-
1. Basic Find Command syntax
2. Basic search with find command
3. Search by Name & Permission.
4. Search by Time (access, modified, change)
5. Case Insensitive Search
6. Search by Restricting depth
7. Search by Range
8. Search by Size
9. Simple Search
10. Search Restricting file and folders
11. Find with Wild card Search
12. Search using SUID, SGID and Sticky Bit
13. Find Command with Action (-exec and xargs)
14. Finding empty and hidden files
15. Finding basis user and group
16. Finding using or and and condition.
17. Finding file without user or group
18. Find and Grep Command
19. Find and using not operator
20. Redirecting find error and failed result for clean search

Nguồn: https://codeigniterbrasil.com

Xem thêm bài viết khác: https://codeigniterbrasil.com/lap-trinh-linux/

36 Comments

Chan dru

April 21, 2020

best explanation….

Reply

Mohammed shaquib ahmed

April 21, 2020

is it correct you mentioned to delete all empty directories we have to use -type f in the find command

Reply

Perhaps

April 21, 2020

Can the -exec option be used to run more than one command on the results of the search?
If yes, please provide a sample command line.

Thank you.

Reply

Bhakti Sangam

April 21, 2020

Nice explanation..great stuff

Reply

chetan anand

April 21, 2020

Wow !!! Extremely good video and well explained anyone working in Linux Find command is the most useful command. I rarely do comment in any video but this is amazing. Thanks for sharing the knowledge.

Reply

Manilyn Sulit

April 21, 2020

Thanks for this video. Very helpful 🙂

Reply

Avinash Srivastava

April 21, 2020

if you are make techincal video in HINDI lang….then >> (in india most people view your video).

Reply

naresh mogaparti

April 21, 2020

Really Useful

Reply

sakshi katre

April 21, 2020

Very nice sir

Reply

Diego Marado

April 21, 2020

hi, how to save the filename of find command results in a file

Reply

Jacob Simon

April 21, 2020

SUID is permissions 4000+
SGID is 2000+
Sticky is 1000+

Reply

puneet gupta

April 21, 2020

try this command: locate abc.txt

Reply

akshay magdum

April 21, 2020

Check out 19 no example…

Reply

Ianis S

April 21, 2020

Very nice

Reply

Anek Singh

April 21, 2020

Highly useful and very nicely explained … please do share some more good videos on Linux

Reply

ISO64

April 21, 2020

Very helpful and clearly explained. Thank you very much, sir!

Reply

Shacki P

April 21, 2020

a nice one.. kudos…

I have one question that how can we copy these files (listed by find command) to another directory?

some thing like below:
find -maxdepth 1 -type f ( -name "*.xls" -o -name "*.xlsx" ) -execute cp {} ./xlsTarget/

Reply

Oppo Balangan

April 21, 2020

stop saying ok then you answer youself ok

Reply

Ramon Fernandez

April 21, 2020

I only came to this video to see how to use find for a purpose like your 14th example. I am very grateful of how knowledgeable and clear you are! I thought it was such a useful and interesting nugget of knowledge you had about the xarg option being efficient and needing to use -0 to avoid the default behaviour of using spaces as delimiters. I also like how you explained that the {} was a placeholder for each result.

You have more certainly earned my subscription. I also appreciate you using a background track instead of just you talking. Also nice how you took the time to demonstrate examples.

Reply

Jeff Cauhape

April 21, 2020

I am having problems using multiple conditions with find, particularly including "-prune". For example, if I want to print a list of all regular files and directories below / but leave out /dev and /proc.
find / ( -type f -o -type d ) -print works, and will print out only files and directories, but it includes /dev.
find / ( -type f -o -type d ) -prune /dev fails, as does
find / ( -type f -o -type d ) -a -prune /dev
Suggestions?

Reply

Learn Linux

April 21, 2020

Thanks. Thought that was good. I learned some knew things. There were quite a few mistakes though.

Reply

ar Choi

April 21, 2020

Good tutorial, can I have the ppt in this video? Thank you very much

Reply

Nabil Boutayeb

April 21, 2020

is it possible to have the ppt

Reply

Joel Fernandes

April 21, 2020

The explanation was very good and you have covered so many options for FIND. Thanks a lot.

Reply

Gaurav Solanky

April 21, 2020

This was really helpful. Can you please explain cpio, tar and other commands used in managing files. Thanks in advance.

Reply

M Wing

April 21, 2020

You must be in SU mode. If I try to find anything from the ROOT I get 'permission denied'. BUT if I SUDO then it is working! :O)

Reply

Ayub Khan

April 21, 2020

Dear Sir,
no any os can beat windows, even you are also using the windows for this video, you can promote unix- linux, but its anyone can attack bcz its version of open OS…

Reply

Brendan O'Shea

April 21, 2020

many thanks!!

Reply

PRASHANT KUMAR

April 21, 2020

must watch very helpful…..thank u for uploadind this video.

Reply

Diptikant Maharana

April 21, 2020

Amazing VDO and beautifully explained.
Thank you so much.

Reply

Mr. Chou

April 21, 2020

Amazing tutorial..gonna subscribe u

Reply

VISHNU PRASAD SAKHAMURI

April 21, 2020

Hi

in Point 19, for deleting empty directories, 
it should be file type d right, instead of f.
find . -type d -empty – exec rm -rf {} ;
correct me if i am wrong. 🙂

Reply

Sanjeeva Teja

April 21, 2020

Very Nice tutorial.. Recommended for every on who wants their code in efficient and effective manner 🙂

Reply

SunsetNova

April 21, 2020

Fantastic tutorial keep them coming.

Reply

AL Corona

April 21, 2020

amazing. Very well explained. Saludos from Los Angeles, California. thank you.

Reply

Parvesh Soni

April 21, 2020

Great work 🙂 Thanks

Please provide awk command tutorial link

Reply

Leave a Reply