The find command is used for searching for files and directories in the Linux command line.
Find is one of the most powerful and frequently used commands. It is also one of the most extensive commands with over 50 options and this makes it a bit confusing specially when it is paired with the exec or xargs command.
It is impossible for a sysadmin or software developer to avoid the find command while working in the command line. Instead of being afraid of it you should embrace its power.
I am going to discuss some of the most common examples of the find command that you are likely to use. But before that let me show you its syntax and how to use it.
The general syntax for the find command is.
Everything in brackets are optional. It means that you can run find command without any options and arguments. It will just dump all the files and directories in the current location. Thataposs not very useful right.
News Link: https://linuxhandbook.com/find-command-examples/.