{"id":818,"date":"2016-03-11T17:11:05","date_gmt":"2016-03-11T15:11:05","guid":{"rendered":"http:\/\/www.systemcodegeeks.com\/?p=818"},"modified":"2016-02-29T15:53:25","modified_gmt":"2016-02-29T13:53:25","slug":"10-examples-find-command-unix-linux","status":"publish","type":"post","link":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/10-examples-find-command-unix-linux\/","title":{"rendered":"10 Examples of find command in Unix and Linux"},"content":{"rendered":"<p>The\u00a0<code>find command<\/code> is one of the versatile commands in UNIX and Linux\u00a0 and I used it a lot in my day to day work. I believe having good knowledge of it and understanding of its different options and usage\u00a0will <a href=\"http:\/\/javarevisited.blogspot.com\/2011\/03\/unix-command-tutorial-working-fast-in.html\">increase your productivity<\/a> a lot in UNIX based operating system e.g. Redhat Linux or Solaris.<\/p>\n<p>If you are a QA, support personnel, and your work involves lots of searching text on a Linux machine or if you are a Java or C++ programmer and your code resides in UNIX, the find command can greatly help you to look for any word inside your source file in the absence of an IDE. It is the alternative way of searching things in UNIX, <b><a href=\"http:\/\/javarevisited.blogspot.com\/2011\/06\/10-examples-of-grep-command-in-unix-and.html\"><code>grep<\/code><\/a>\u00a0 <\/b>is another Linux command which provides similar functionality like find.<\/p>\n<p>Like any\u00a0other command, find&#8217;s strength lies in its various <i>options<\/i>, which are worth learning, but, to be frank, hard to remember. If you are even able to remember the options mentioned in this article, you will be taking much more advantage of the find command, than average developers, QA, support people and Linux users.<\/p>\n<p>If you love to read books,\u00a0 you can also take a look at <a href=\"http:\/\/www.amazon.com\/The-Linux-Command-Line-Introduction\/dp\/1593273894\/?tag=javamysqlanta-20\" rel=\"nofollow\">The Linux Command Line: A Complete Introduction<\/a>, a great book and must read for any programmer, tester, system administrator, security guy or developers, who work in UNIX and Linux based environment. It not only teaches about find and grep but also introduces several useful commands, which probably gone unnoticed by most of us.<\/p>\n<h2>10 Tips on find command in UNIX<\/h2>\n<p>Here I am listing down some of the ways I use to <code>find<\/code> in Unix or Linux box regularly, I hope this will help someone who is new in <u>UNIX find command<\/u> or any developer who has started working on UNIX environment. This list is by no means complete and just some of my\u00a0favorites, if you have something to share please share via commenting.<\/p>\n<h3>How to run\u00a0 last executed find command in Unix \u2013 Example 1<\/h3>\n<p><b>!find<\/b> will repeat the <b>last<\/b> <b>find<\/b> <b>command<\/b> executed. It saves a lot of <b>time<\/b> <b>if<\/b> you re searching for something and you need to execute the same <b>command<\/b> again and again. In fact &#8220;!&#8221; can be used with any <b>command<\/b> to invoke the previous run of that command, it&#8217;s one of the special shell characters.<\/p>\n<pre class=\"brush:bash\">javin@testenv1 ~\/java : !find\r\nfind . -name \"*.java\"     --last find command executed\r\n.\/OnlineStockTrading.java\r\n.\/StockTrading.java\r\n<\/pre>\n<h3>How to find files which have been modified less than one day, minute or hour in Unix &#8211; Example 2<\/h3>\n<p><code>find -mtime<\/code> is used to search files based upon modification time. This is, in fact, my favorite top while looking out some production issues just to <i>check which files have been modified recently<\/i>, could be likely cause of\u00a0 the issue, believe me, it helps a lot and many times gives you enough hint of any problem due to intended or unintended file change.<\/p>\n<p>Along with <code>\u2013mtime<\/code>, there are two more options related to time, <code>find -atime<\/code> which denotes last accessed time of the file and <code>find \u2013ctime<\/code> denotes last changed time. + sign is used to search for greater than, &#8211; sign is used to search for less than and without a sign is used for exact. For example <b>find \u2013mtime -1<\/b> will search all files which have been modified:<\/p>\n<pre class=\"brush:java\">javin@testenv1 ~\/java : find . -mtime 1  (find all the files modified exact 1 day)\r\n\r\njavin@testenv1 ~\/java : find . -mtime -1 (find all the files modified less than 1 day)\r\n.\r\n.\/StockTrading.java\r\n\r\njavin@testenv1 ~\/java : find . -mtime +1 (find all the files modified more than 1 day)\r\n.\/.vimrc\r\n.\/OnlineStockTrading.java\r\n.\/StockTrading.java~\r\n<\/pre>\n<p>In this example since we have only modified <b>StockTrading.java<\/b> some time back it has shown on <code>find \u2013mtime -1<\/code>, the rest of files are not touched today so they are appearing as modified more than 1 day while there is no file which has been modified exactly one day.<\/p>\n<h3>How to find all the files and directories which hold the 777 permission in Unix box \u2013 Example 3<\/h3>\n<p><code>find \u2013perm<\/code> option is used to find files based upon permissions. You can use find \u2013perm 444 to get all files which allow read to owner, group and others. If you are not sure how \u00a0those 777 and 444 numbers comes up, see my post on <a href=\"http:\/\/javarevisited.blogspot.com\/2011\/11\/file-permissions-in-unix-linux-example.html\">file and directory permission in Unix<\/a> and some <a href=\"http:\/\/javarevisited.blogspot.sg\/2012\/03\/10-example-of-chmod-command-in-unix.html\">chmod examples<\/a> to change permissions in Unix.<\/p>\n<pre class=\"brush:java\">javin@testenv1:~\/java $ find . -perm 644\r\n.\/.vimrc\r\n.\/OnlineStockTrading.java\r\n<\/pre>\n<p>I use this <u>find command example<\/u> to find out all the executable files, you can also modify it to find all the read-only files or files having written permission etc by changing permissions e.g. to find all read-only files in current directory: <b>find . \u2013perm 555<\/b>.<\/p>\n<p>Here <b>&#8220;.&#8221; or period<\/b> denotes the current directory. You can replace it with any directory you want.<\/p>\n<h3>Example 4 \u2013 Case insensitive search using find in Unix<\/h3>\n<p>How to do case insensitive search using find command in Unix? Use option <b>\u201c-i&#8221;<\/b> with name, by default find searches are case sensitive. This option of the find is extremely helpful while looking for errors and exceptions in the log file.<\/p>\n<pre class=\"brush:java\">find . \u2013iname \"error\" \u2013print ( -i is for ignore )<\/pre>\n<h2>UNIX find and xargs command Example<\/h2>\n<p>Now we will see some UNIX find command example combined with <code>xargs<\/code> command. A combination of <a href=\"http:\/\/javarevisited.blogspot.com\/2012\/06\/10-xargs-command-example-in-linux-unix.html\">find and\u00a0<\/a> <a href=\"http:\/\/javarevisited.blogspot.com\/2012\/06\/10-xargs-command-example-in-linux-unix.html\">xargs<\/a> can be used to do whatever witch each file found by find command, for example, we can delete that file, list content of that file or can apply any comment on that file.<\/p>\n<h3>Example 5 &#8211; How to delete temporary files using the find command in Unix?<\/h3>\n<p>In order to delete files, you can use either \u2013delete option of find command or use xargs in combination. It&#8217;s better to create housekeeping script for such task which can perform cleanup on a periodic basis.<\/p>\n<pre class=\"brush:bash\">find . -name \"*.tmp\" -print | xargs rm \u2013f<\/pre>\n<p>Use of <code>xargs<\/code> along with find gives you immense power to do whatever you want with each search result. See another example below , also its worth considering use of &#8211; <code>print0<\/code> to avoid problems with <a href=\"http:\/\/java67.blogspot.com\/2012\/12\/how-to-remove-all-white-space-from-String-beginning-end-between.html\">whitespace<\/a> in the path when piping to <code>xargs<\/code> (use with the xargs -0 option) as suggested by Ebon Elaza.<\/p>\n<h3>Example 6 &#8211; \u00a0How to find all text file which contains word Exception using find command in Unix ?<\/h3>\n<p><code>find . \u2013name \"*.java\" \u2013print | xargs grep \u201cMemoryCache\u201d<\/code>, this will search all java files starting from current directory for the word &#8220;MemoryCache&#8221;. we can also leave -print option in all cases because its default for <u>UNIX finds command<\/u> as pointed out by Ben in comments. You can further sort the result of find command using <b><a href=\"http:\/\/javarevisited.blogspot.com\/2011\/08\/unix-sort-command-example-tutorial.html\">Sort command in unix.<\/a><\/b><\/p>\n<pre class=\"brush:bash\">find . \u2013name \"*.txt\" \u2013print | xargs grep \"Exception\"<\/pre>\n<h3>Example 7 &#8211; \u00a0Finding files only in current directory not searching on subdirectories:<\/h3>\n<p>While using find command, I realized that sometimes I only need to <a href=\"http:\/\/javarevisited.blogspot.com\/2012\/08\/delete-empty-files-directories-unix.html\" target=\"_blank\">find files and directories<\/a> that is new, only in the current directory so I modified the find command as follows. You can use the <code>find\u00a0\u2013type<\/code> option to specifiy search for the only file, link or directory and maxdepth specifies how deep find has to search.<\/p>\n<pre class=\"brush:bash\">find . -maxdepth 1 -type f -newer first_file<\/pre>\n<p>Another way of doing it is below:<\/p>\n<pre class=\"brush:bash\">find . -type f -cmin 15 -prune<\/pre>\n<p>Means type file, last modified 15 minutes ago, only look at the current directory. (No sub-directories)<\/p>\n<h3>Example 8 \u2013 How to find files based on size in Unix and Linux<\/h3>\n<p>Following find example shows how you can use find \u2013size option to <a href=\"http:\/\/javarevisited.blogspot.com\/2012\/03\/how-to-find-file-and-directory-size-in.html\" target=\"_blank\">find files based upon certain size<\/a>. This will<i> <\/i>find all files in current directory and sub-directory, greater than some size using find command in Unix:<\/p>\n<pre class=\"brush:bash\">find . -size +1000c -exec ls -l {} \\;<\/pre>\n<p>Always use a <code>c<\/code> after the number, and specify the size in bytes, otherwise, you will get confuse because find -size list files based on the size of the disk block. to find files using a range of file sizes, a minus or plus sign can be specified before the number. The minus sign means &#8220;less than,&#8221; and the plus sign means &#8220;greater than.&#8221; Suppose if you want to find all the files within a range you can use find command as in below example of find:<\/p>\n<pre class=\"brush:bash\">find . -size +10000c -size -50000c -print<\/pre>\n<p>This <u>find example<\/u> lists all files that are greater than 10,000 bytes, but less than 50,000 bytes:<\/p>\n<h3>Example 9 \u2013 How to find files some days older and above certain size<\/h3>\n<p>We can combine \u2013mtime and \u2013size to find files which are some days old and greater than some size in Unix. A very common scenario where you want to delete some large old files to free some space in your machine. This example of find command will find which are more than 10 days old and size greater than 50K.<\/p>\n<pre class=\"brush:bash\">find . -mtime +10 -size +50000c -exec ls -l {} \\;<\/pre>\n<h3>Example 10<\/h3>\n<p>You can use <code>awk<\/code> in combination of <code>find<\/code> to print a formatted output e.g next command will<b><i> find all of the <a href=\"http:\/\/javarevisited.blogspot.com\/2011\/04\/symbolic-link-or-symlink-in-unix-linux.html\">symbolic links<\/a> in your home directory<\/i><\/b>, and print the files your symbolic links points to:<\/p>\n<pre class=\"brush:bash\">find . -type l -print | xargs ls -ld | awk '{print $10}'<\/pre>\n<p>&#8220;.&#8221; says starts from current directory and include all subdirectory and &#8220;-type l&#8221; says list all links.<\/p>\n<p>Hope you find this useful , please share how you are using find commands and we can benefit from each others experience and work more efficiently in UNIX.<\/p>\n<p><b>Tip:<\/b> <b><u>$*<\/u>: $*<\/b> is one of the <a href=\"http:\/\/javarevisited.blogspot.com\/2011\/06\/special-bash-parameters-in-script-linux.html\">special bash parameters <\/a>which is used to expands positional parameters from position one. if you give double quotes and expansion is done within double quotes, it only expands to a single word and corresponding value of each parameter will be separated by the first letter of the IFS environment variable defined in bash. Do let me know how do you find these find examples .<\/p>\n<p>Here is a nice summary slide of some useful find command examples, which will help you to get more from this excellent command line tool in UNIX and Linux:<\/p>\n<p><a href=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/02\/10-Examples-of-find-comand-in-UNIX.png\" rel=\"attachment wp-att-824\"><img decoding=\"async\" class=\"aligncenter size-large wp-image-824\" src=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/02\/10-Examples-of-find-comand-in-UNIX-1024x576.png\" alt=\"10 Examples of find comand in UNIX\" width=\"620\" height=\"349\" srcset=\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/02\/10-Examples-of-find-comand-in-UNIX-1024x576.png 1024w, https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/02\/10-Examples-of-find-comand-in-UNIX-300x169.png 300w, https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/02\/10-Examples-of-find-comand-in-UNIX-768x432.png 768w, https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/02\/10-Examples-of-find-comand-in-UNIX.png 1600w\" sizes=\"(max-width: 620px) 100vw, 620px\" \/><\/a><\/p>\n<h2>How to use find command on file names with space in Unix<\/h2>\n<p>I have received a lot of comments from my readers on not mentioning about <b>find -print0<\/b> and <b>xargs -0 on find examples<\/b>, so I thought to include this as well. When we don&#8217;t specify any expression after find command the default option is -print which prints the name of each found files followed by \\n or <b>newline<\/b>.since we mostly <b>pipe the output of find command to xargs<\/b> -print could cause a problem if file name itself contain a <i>new line or any form of white space<\/i>.<\/p>\n<p>To resolve this issue <b>instead of -print use -print0<\/b>. The difference between <i>find -print <\/i>and <i>find -print0<\/i> is, print0 display file name on the stdout followed by an &#8220;NUL&#8221; character and then you can <b>use xargs -0<\/b> commands to process file names with a null character. let&#8217;s see UNIX find command example with a file name having space in them:<\/p>\n<pre class=\"brush:bash\">javin@testenv1:~\/test find . -name \"*equity*\" -print\r\n.\/cash equity trading .\/equity~\r\n<\/pre>\n<p>You see here &#8220;cash equity trading&#8221; has space in there name<\/p>\n<pre class=\"brush:bash\">javin@testenv1:~\/test find . -name \"*equity*\" -print | xargs ls -l\r\nls: cannot access .\/cash: No such file or directory\r\nls: cannot access equity: No such file or directory\r\nls: cannot access trading: No such file or directory\r\n-r--r--r-- 1 stock_trading cash_domain trading 0 Jul 15 11:42 .\/equity~\r\n<\/pre>\n<p>Now if we pass this to xargs, xargs treat them as three separate files.<\/p>\n<pre class=\"brush:bash\">javin@testenv1:~\/test find . -name \"*equity*\" -print0 | xargs ls\r\n\r\nxargs: WARNING: a NUL character occurred in the input.  It cannot be passed through in the argument list.  Did you mean to use the --null option?\r\n\r\nls: cannot access .\/cash: No such file or directory\r\nls: cannot access equity: No such file or directory\r\nls: cannot access trading: No such file or directory\r\n<\/pre>\n<p>Now to solve this, we have used find command with <code>-print0<\/code> which appends NUL character on file name but without <code>xargs -0<\/code>, \u00a0xargs command would not able to handle those inputs.<\/p>\n<pre class=\"brush:bash\">javin@testenv1:~\/test find . -name \"*equity*\" -print0 | xargs -0 ls -l\r\n-rw-r--r-- 1 stock_trading cash_domain trading 0 Jul 21 09:54 .\/cash equity trading\r\n-r--r--r-- 1 stock_trading cash_domain trading 0 Jul 15 11:42 .\/equity~\r\n<\/pre>\n<p>Now you can see with <code>find -print0| xargs -0<\/code> it looks good.<\/p>\n<p>In short, always <b><u>use find -print0 along with xargs -0<\/u><\/b> if you see slightest possibilities of file names containing space in UNIX or Linux.<\/p>\n<h2>Important point about find command in Unix and Linux:<\/h2>\n<p>Here are some of the important and interesting things to know about powerful find command, most of these points are contributed by various people in comments and big thanks to all of them for sharing their knowledge, you should definitely check out comments to know more about find command:<\/p>\n<ol>\n<li><code>find \u2013print<\/code> and find is same as \u2013print is a default option of the find command.<\/li>\n<li><code>find \u2013print0<\/code> should be used to avoid any issue with white space in file name or path while forwarding output to xargs, also use <code>xargs -0<\/code> along with <code>find \u2013print0<\/code><\/li>\n<li>find has an option called <code>\u2013delete<\/code> which can be used in place of <code>-exec rm {} \\;<\/code><\/li>\n<\/ol>\n<div class=\"attribution\">\n<table>\n<tbody>\n<tr>\n<td><span class=\"reference\">Reference: <\/span><\/td>\n<td><a href=\"http:\/\/javarevisited.blogspot.com\/2011\/03\/10-find-command-in-unix-examples-basic.html\">10 Examples of find command in Unix and Linux<\/a> from our <a href=\"http:\/\/www.systemcodegeeks.com\/join-us\/scg\/\">SCG partner<\/a> Javin Paul at the <a href=\"http:\/\/javarevisited.blogspot.com\/\">Javarevisited<\/a> blog.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>The\u00a0find command is one of the versatile commands in UNIX and Linux\u00a0 and I used it a lot in my day to day work. I believe having good knowledge of it and understanding of its different options and usage\u00a0will increase your productivity a lot in UNIX based operating system e.g. Redhat Linux or Solaris. If &hellip;<\/p>\n","protected":false},"author":18,"featured_media":192,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[],"class_list":["post-818","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bash"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>10 Examples of find command in Unix and Linux - System Code Geeks - 2026<\/title>\n<meta name=\"description\" content=\"The\u00a0find command is one of the versatile commands in UNIX and Linux\u00a0 and I used it a lot in my day to day work. I believe having good knowledge of it and\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/10-examples-find-command-unix-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"10 Examples of find command in Unix and Linux - System Code Geeks - 2026\" \/>\n<meta property=\"og:description\" content=\"The\u00a0find command is one of the versatile commands in UNIX and Linux\u00a0 and I used it a lot in my day to day work. I believe having good knowledge of it and\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/10-examples-find-command-unix-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"System Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/systemcodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2016-03-11T15:11:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/linux-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Javin Paul\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@systemcodegeeks\" \/>\n<meta name=\"twitter:site\" content=\"@systemcodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Javin Paul\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"11 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/10-examples-find-command-unix-linux\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/10-examples-find-command-unix-linux\/\"},\"author\":{\"name\":\"Javin Paul\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/6ef28acba02a0c319e609fd9239d952f\"},\"headline\":\"10 Examples of find command in Unix and Linux\",\"datePublished\":\"2016-03-11T15:11:05+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/10-examples-find-command-unix-linux\/\"},\"wordCount\":1852,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/10-examples-find-command-unix-linux\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/linux-logo.jpg\",\"articleSection\":[\"BASH\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/10-examples-find-command-unix-linux\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/10-examples-find-command-unix-linux\/\",\"url\":\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/10-examples-find-command-unix-linux\/\",\"name\":\"10 Examples of find command in Unix and Linux - System Code Geeks - 2026\",\"isPartOf\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/10-examples-find-command-unix-linux\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/10-examples-find-command-unix-linux\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/linux-logo.jpg\",\"datePublished\":\"2016-03-11T15:11:05+00:00\",\"description\":\"The\u00a0find command is one of the versatile commands in UNIX and Linux\u00a0 and I used it a lot in my day to day work. I believe having good knowledge of it and\",\"breadcrumb\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/10-examples-find-command-unix-linux\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/10-examples-find-command-unix-linux\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/10-examples-find-command-unix-linux\/#primaryimage\",\"url\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/linux-logo.jpg\",\"contentUrl\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/linux-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/10-examples-find-command-unix-linux\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.systemcodegeeks.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Shell Scripting\",\"item\":\"https:\/\/www.systemcodegeeks.com\/category\/shell-scripting\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"BASH\",\"item\":\"https:\/\/www.systemcodegeeks.com\/category\/shell-scripting\/bash\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"10 Examples of find command in Unix and Linux\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#website\",\"url\":\"https:\/\/www.systemcodegeeks.com\/\",\"name\":\"System Code Geeks\",\"description\":\"Operating System Developers Resource Center\",\"publisher\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.systemcodegeeks.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\/\/www.systemcodegeeks.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"contentUrl\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/systemcodegeeks\",\"https:\/\/x.com\/systemcodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/6ef28acba02a0c319e609fd9239d952f\",\"name\":\"Javin Paul\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/dc70a0e0b9d5c6614098936b017d6c79ed7f3e0c315a1e59d7d300e4c46d726c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/dc70a0e0b9d5c6614098936b017d6c79ed7f3e0c315a1e59d7d300e4c46d726c?s=96&d=mm&r=g\",\"caption\":\"Javin Paul\"},\"sameAs\":[\"http:\/\/javarevisited.blogspot.com\/\"],\"url\":\"https:\/\/www.systemcodegeeks.com\/author\/javin-paul\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"10 Examples of find command in Unix and Linux - System Code Geeks - 2026","description":"The\u00a0find command is one of the versatile commands in UNIX and Linux\u00a0 and I used it a lot in my day to day work. I believe having good knowledge of it and","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/10-examples-find-command-unix-linux\/","og_locale":"en_US","og_type":"article","og_title":"10 Examples of find command in Unix and Linux - System Code Geeks - 2026","og_description":"The\u00a0find command is one of the versatile commands in UNIX and Linux\u00a0 and I used it a lot in my day to day work. I believe having good knowledge of it and","og_url":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/10-examples-find-command-unix-linux\/","og_site_name":"System Code Geeks","article_publisher":"https:\/\/www.facebook.com\/systemcodegeeks","article_published_time":"2016-03-11T15:11:05+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/linux-logo.jpg","type":"image\/jpeg"}],"author":"Javin Paul","twitter_card":"summary_large_image","twitter_creator":"@systemcodegeeks","twitter_site":"@systemcodegeeks","twitter_misc":{"Written by":"Javin Paul","Est. reading time":"11 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/10-examples-find-command-unix-linux\/#article","isPartOf":{"@id":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/10-examples-find-command-unix-linux\/"},"author":{"name":"Javin Paul","@id":"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/6ef28acba02a0c319e609fd9239d952f"},"headline":"10 Examples of find command in Unix and Linux","datePublished":"2016-03-11T15:11:05+00:00","mainEntityOfPage":{"@id":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/10-examples-find-command-unix-linux\/"},"wordCount":1852,"commentCount":2,"publisher":{"@id":"https:\/\/www.systemcodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/10-examples-find-command-unix-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/linux-logo.jpg","articleSection":["BASH"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/10-examples-find-command-unix-linux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/10-examples-find-command-unix-linux\/","url":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/10-examples-find-command-unix-linux\/","name":"10 Examples of find command in Unix and Linux - System Code Geeks - 2026","isPartOf":{"@id":"https:\/\/www.systemcodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/10-examples-find-command-unix-linux\/#primaryimage"},"image":{"@id":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/10-examples-find-command-unix-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/linux-logo.jpg","datePublished":"2016-03-11T15:11:05+00:00","description":"The\u00a0find command is one of the versatile commands in UNIX and Linux\u00a0 and I used it a lot in my day to day work. I believe having good knowledge of it and","breadcrumb":{"@id":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/10-examples-find-command-unix-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/10-examples-find-command-unix-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/10-examples-find-command-unix-linux\/#primaryimage","url":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/linux-logo.jpg","contentUrl":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/linux-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/10-examples-find-command-unix-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.systemcodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Shell Scripting","item":"https:\/\/www.systemcodegeeks.com\/category\/shell-scripting\/"},{"@type":"ListItem","position":3,"name":"BASH","item":"https:\/\/www.systemcodegeeks.com\/category\/shell-scripting\/bash\/"},{"@type":"ListItem","position":4,"name":"10 Examples of find command in Unix and Linux"}]},{"@type":"WebSite","@id":"https:\/\/www.systemcodegeeks.com\/#website","url":"https:\/\/www.systemcodegeeks.com\/","name":"System Code Geeks","description":"Operating System Developers Resource Center","publisher":{"@id":"https:\/\/www.systemcodegeeks.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.systemcodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.systemcodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.systemcodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.systemcodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.systemcodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/systemcodegeeks","https:\/\/x.com\/systemcodegeeks"]},{"@type":"Person","@id":"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/6ef28acba02a0c319e609fd9239d952f","name":"Javin Paul","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/dc70a0e0b9d5c6614098936b017d6c79ed7f3e0c315a1e59d7d300e4c46d726c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/dc70a0e0b9d5c6614098936b017d6c79ed7f3e0c315a1e59d7d300e4c46d726c?s=96&d=mm&r=g","caption":"Javin Paul"},"sameAs":["http:\/\/javarevisited.blogspot.com\/"],"url":"https:\/\/www.systemcodegeeks.com\/author\/javin-paul\/"}]}},"_links":{"self":[{"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/posts\/818","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/comments?post=818"}],"version-history":[{"count":0,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/posts\/818\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/media\/192"}],"wp:attachment":[{"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/media?parent=818"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/categories?post=818"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/tags?post=818"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}