Following is generalized syntax of find:
Quote:
find <where-to-search> <what's criteria of search> <item name or criteria's value> <action>
|
Let's say if you want to search a "file" in /usr, then you can do:
Code:
find /usr -name "games" -tpye f -print
If games is a directory, then,
Code:
find /usr -name "games" -type d -print
Or to list out files in games in detailed manner:
Code:
find /usr -name "games" -type d -exec ls -la {} \;
And so on...
Once you'll used to find command, then I think you will need not to read full man page, but simply go through the available options (i.e. f for file, d for dir), search criterias (i.e. -type, -name, -perm, -mtime etc), action (i.e. -print, -exec etc.) and
{} \; syntax.
Howp it will help you.