The power of find command in Linux ā advanced.
Generally whoever uses Linux, would know about the find command. Find the man page <a href="http://amit.themafia.info/phpMan.php?parameter=find&mode=man" target="_blank">here.
There are also lots of blogs, tutorials and other articles on find command on the web, so why write another one. Because it’s worth every word spent on it š
find is a very powerful command, let’s see how (options for find command from man page and usage):
ādepth ā Process each directory’s contents before the directory itself.
Continue reading
āmaxdepth ā Descend at most <span style="text-decoration: underline;">levels (a non-negative integer) levels of directories below the command line arguments.
āxdev ā Don’t descend directories on other filesystems.
āexecutable ā Matches files which are executable and directories which are searchable (in a file name resolution sense).
This takes into account access control lists and other permissions artefacts which the -perm test ignores.
āiname ā Like -name, but the match is case insensitive.
ānogroup ā No group corresponds to file’s numeric group ID.
ānouser ā No user corresponds to file’s numeric user ID.
āfls <span style="text-decoration: underline;">file ā True; like -ls but write to <span style="text-decoration: underline;">file like -fprint.
āok <span style="text-decoration: underline;">command ā Like -exec but ask the user first (on the standard input);
āprint0 ā True; print the full file name on the standard output, followed by a null character
(instead of the newline character that -print uses).
āprintf <span style="text-decoration: underline;">format ā True; print <span style="text-decoration: underline;">format on the standard output, interpreting ’’ escapes and ’%’ directives.