| Description | Command |
| find a file in a directory | find <directory> -name “<file/dir name>” |
| case insensitive find | -i (eg: find . -iname '<file/dir name>' |
| find for regular file types | find . -name '<name>' -type f |
| find for directories types | find . -name '<name>' -type d |
| find for symbolic links | find . -name '<name>' -type l |
| find all empty files in a directory | find . -empty |
execute another command on the find results:
Syntax: <find command> -exec <other command> {} \;
No comments:
Post a Comment