

{"id":111281,"date":"2023-01-17T13:24:18","date_gmt":"2023-01-17T07:54:18","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=111281"},"modified":"2023-01-17T13:24:18","modified_gmt":"2023-01-17T07:54:18","slug":"find-command-in-linux","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/find-command-in-linux\/","title":{"rendered":"Find Command in Linux"},"content":{"rendered":"<p>In this article, you will learn what the find command in Linux is and the different options used with the find command. You will also learn how to use these options to filter out the results you desire.<\/p>\n<h3>What is the find command in Linux?<\/h3>\n<p>The find command is a simple yet powerful tool that helps you find a particular file within a directory. You might mistake the find command for doing a mere job of just finding a file provided the file name, well it&#8217;s more than that. The find command finds files based on different criteria like permissions, user ownership, modification, size, date\/time, and more.<\/p>\n<p>The find command can be made even more powerful by combining it with other commands like grep and sed using a pipe symbol (a function that passes in the output of 1 function as the input of the other.)<\/p>\n<p>The find command searches for files and directories in a directory hierarchy based on a user-given expression and can perform user-specified action on each matched file.<\/p>\n<p>In a nutshell, The find command is a powerful command-line utility that finds files and directories that meets certain criteria. We can even perform certain actions on the results we get back.<\/p>\n<h3>Why use Linux find command?<\/h3>\n<p>Say you created a file yesterday and forgot the exact location of where you created it, say you even forgot what format you even saved it as. Find command comes to the rescue in situations like these. You can even directly do actions once you find your desired file or directory.<\/p>\n<h3>Syntax of Find command in Linux<\/h3>\n<p>The find tool is already preinstalled in most of the distributions of Linux, which means you can directly start giving your commands using the syntax given below:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">find &lt;option&gt; &lt;path&gt; &lt;expression&gt; &lt;what to search&gt;<\/pre>\n<p>1. The options field is where you enter different options which control the treatment of symbolic links, debugging options, and optimization methods.<\/p>\n<p>2. The path field is where you specify the starting directory or the directories where the find command will search the files.<\/p>\n<p>3. The expression filed is where you enter made-up options, search patterns, and actions separating them by operators.<\/p>\n<h3>Options used with Linux find command<\/h3>\n<p>Before we look into examples, let us understand the different options that are used with the find command.<\/p>\n<p><strong>1. -exec &lt;command&gt;<\/strong><\/p>\n<p>This option returns 0 for its exit status upon successful command execution of the file being searched which meets the given criteria.<\/p>\n<p><strong>2. -ok &lt;command&gt;<\/strong><\/p>\n<p>This option world the same as the \u2018-exec\u2019 command, except the user is prompted first.<\/p>\n<p><strong>3. -inum &lt;numb&gt;<\/strong><\/p>\n<p>This option searches for the files with the inode number you specify. Inode number is a unique number that exists for all the files in Linux and UNIX type systems.<\/p>\n<p><strong>4. -links &lt;number&gt;<\/strong><\/p>\n<p>This option searches for files with the number of links you have specified<\/p>\n<p><strong>5. -name<\/strong><\/p>\n<p>This option searches for the files that are specified by the name you give.<\/p>\n<p><strong>6. -iname<\/strong><\/p>\n<p>This option ignores the case and searches for the files that are specified by the name you give.<\/p>\n<p><strong>7. -newer file<\/strong><\/p>\n<p>This option searches for the files that were modified or created after the file Whose name you have entered.<\/p>\n<p><strong>8. -perm<\/strong><\/p>\n<p>This option searches for the file based on the permissions you have entered. you must note that the permission you entered is in the octal form.<\/p>\n<p><strong>9. -print<\/strong><\/p>\n<p>This option displays the pathname of the files which is found by using the rest of the criteria you have specified.<\/p>\n<p><strong>10. -empty<\/strong><\/p>\n<p>This option searches for empty files and directories<\/p>\n<p><strong>11. -user &lt;name&gt;<\/strong><\/p>\n<p>This option searches for files owned by the user name or ID with the name you have specified.<\/p>\n<p><strong>12. -size &lt;n&gt;<\/strong><\/p>\n<p>This option searches for a file of \u2018n\u2019 blocks. Blocks mean the size of the file for example 100m represents 100 MB. The number followed by C can also be used to measure the size in characters.<\/p>\n<p><strong>13. -size &lt;+n&gt;<\/strong><\/p>\n<p>This option searches for a file of size greater than \u2018n\u2019 blocks. for example, +100M, will search for files that are larger than hundred megabytes.<\/p>\n<p><strong>14. -size &lt;+n&gt;<\/strong><\/p>\n<p>This option searches for a file of size greater than \u2018n\u2019 blocks. for example, +100M, will search for files that are larger than hundred megabytes. K means Kilobytes, G means Gigabytes, and so on.<\/p>\n<p><strong>15. \\&lt;criteria\\&gt;<\/strong><\/p>\n<p>This option will be true if the criteria you enter are true. this command is used for grouping criteria combined with logical or, or logical and.<\/p>\n<p><strong>16. !&lt;criteria&gt;<\/strong><\/p>\n<p>This option will be true if the criteria you enter are false. this command is used for grouping criteria combined with logical or, or logical and.<\/p>\n<h3>Examples of the Linux find command<\/h3>\n<p>Now that you have understood what the find command is used for and have also seen its syntax and options let us look at some examples using the find command in Linux.<\/p>\n<h3><span style=\"font-weight: 400\">How to find files using file names?<br \/>\n<\/span><\/h3>\n<p><span style=\"font-weight: 400\">Let us see some examples of how to find files just using file names.<\/span><\/p>\n<p><strong>1. Searching in the current directory<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">find . -name dataflair.txt<\/pre>\n<p>This command will search the .txt file with the name \u2018dataflair\u2019 in the current directory as \u201c.\u201d represents \u201ccurrent directory\u201d<\/p>\n<p><strong>2. Searching in the home directory<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">find \/home -name dataflair.txt<\/pre>\n<p>This command will search the .txt file with the name \u2018dataflair\u2019 in the home directory. Note that the \u201c\/\u201d represents the root directory.<\/p>\n<p><strong>3. Searching by ignoring case<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">find \/home -iname dataflair.txt<\/pre>\n<p>This command will search the .txt file with the name \u2018dataflair\u2019 in the home directory by ignoring the case of the name we have entered. Hence using the flag \u201ci\u201d we can search files like DataFlait.txt, DATAFLAIR.txt, and so on.<\/p>\n<p><strong>4. Searching directories by name<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">find \/home d -name dataflair<\/pre>\n<p>This command will search the directory with the name \u2018dataflair\u2019 in the home directory as we have entered the flag \u201cd\u201d.<\/p>\n<p><strong>4. Searching for all the formats of the file<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">find \/home -name dataflair.*<\/pre>\n<p>Since we used a wild card, this command will search all formats of the file named dataflair, hence we can match files like dataflair.php, dataflair.c, dataflair.sh, dataflair.txt, and many more.<\/p>\n<h3>How to search files based on permissions?<\/h3>\n<p>We can also search files based on their permissions by giving their octal form. Here is a quick revision of the table:<\/p>\n<table>\n<tbody>\n<tr>\n<td><strong>Binary Notation<\/strong><\/td>\n<td><strong>Octal Notation<\/strong><\/td>\n<td><strong>Permission<\/strong><\/td>\n<td><strong>meaning<\/strong><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">000<\/span><\/td>\n<td><span style=\"font-weight: 400\">0<\/span><\/td>\n<td><span style=\"font-weight: 400\">&#8211;<\/span><\/td>\n<td><span style=\"font-weight: 400\">No permission<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">001<\/span><\/td>\n<td><span style=\"font-weight: 400\">1<\/span><\/td>\n<td><span style=\"font-weight: 400\">&#8211;x<\/span><\/td>\n<td><span style=\"font-weight: 400\">Only execute<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">010<\/span><\/td>\n<td><span style=\"font-weight: 400\">2<\/span><\/td>\n<td><span style=\"font-weight: 400\">-w-<\/span><\/td>\n<td><span style=\"font-weight: 400\">Only write<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">011<\/span><\/td>\n<td><span style=\"font-weight: 400\">3<\/span><\/td>\n<td><span style=\"font-weight: 400\">-wx<\/span><\/td>\n<td><span style=\"font-weight: 400\">Write and execute<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">100<\/span><\/td>\n<td><span style=\"font-weight: 400\">4<\/span><\/td>\n<td><span style=\"font-weight: 400\">r&#8211;<\/span><\/td>\n<td><span style=\"font-weight: 400\">Only read<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">101<\/span><\/td>\n<td><span style=\"font-weight: 400\">5<\/span><\/td>\n<td><span style=\"font-weight: 400\">r-x<\/span><\/td>\n<td><span style=\"font-weight: 400\">Read and execute<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">110<\/span><\/td>\n<td><span style=\"font-weight: 400\">6<\/span><\/td>\n<td><span style=\"font-weight: 400\">rw-<\/span><\/td>\n<td><span style=\"font-weight: 400\">Read and write<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">111<\/span><\/td>\n<td><span style=\"font-weight: 400\">7<\/span><\/td>\n<td><span style=\"font-weight: 400\">rwx<\/span><\/td>\n<td><span style=\"font-weight: 400\">Read write and execute<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"font-weight: 400\">If you want to get a better understanding of permissions, check out my article on chmod.<\/span><\/p>\n<p><strong>1. Finding file with permission 777<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">find \/ -type f -perm 0777 -print<\/pre>\n<p>This command will find the files with permission 777 a k a with permissions of \u201crwxrwxrwx\u201d<\/p>\n<p><strong>2. Finding file without permission 641<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">find \/ -type f ! -perm 777 -print<\/pre>\n<p>This command will find all the files without the permission 644 a k a without the permissions of \u201crw-r&#8212;-x\u201d<\/p>\n<p><strong>3. Finding only readable files<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">find \/ -type f -perm 400-print<\/pre>\n<p>This command will find all the files with the permission 400 a k a without the permissions of \u201cr&#8212;&#8212;&#8211;\u201d. Where only the user can read the file.<\/p>\n<p><strong>4. Finding only executable files<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">find \/ -perm \/ a=x<\/pre>\n<p>This command will find all the files with the permission of only executing for all the users (owner, group, and others)<\/p>\n<p><strong>5. Finding file with permission 777 and replacing it with 700<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">find \/ -type d -perm 777 -print -exec chmod 700 {} \\;<\/pre>\n<p>This command will find the files with the permission 777 and then executes chmod (change mode) and replaces the permission to 700.<\/p>\n<p><strong>6. Finding all empty directories<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">find \/tmp -type d -empty<\/pre>\n<p>This command will find all empty directories under a certain path<\/p>\n<p><strong>7. Finding all empty files<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">find \/tmp -type f -empty<\/pre>\n<p>This command will find all empty directories under a certain path<\/p>\n<p><strong>8. Finding and removing a single file<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">find . -type f -name \u201cdataflair.txt\u201d -exec rm -f {} \\;<\/pre>\n<p>This command will find a single text file called \u201cdataflair\u201d and remove it.<\/p>\n<p><strong>9. Finding and removing multiple files<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">find . -type f -name \u201c*.txt\u201d -exec rm -f {} \\;<\/pre>\n<p>This command will find all the text files in the specified directory and remove them.<\/p>\n<p><strong>10. Finding all hidden files<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">Find \/tmp -type f -name \u201c.*\u201d<\/pre>\n<p>This command will find all the hidden files.<\/p>\n<h3>How to Search files based on date and time?<\/h3>\n<p><strong>1. Finding files last modified 30 days ago<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">find \/ -mtime 30<\/pre>\n<p>This command will find all the files that were modified 30 days back.<\/p>\n<p><strong>2. Finding files last accessed 15 days ago<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">find \/ -atime 15<\/pre>\n<p>This command will find all the files that were accessed 15days back.<\/p>\n<p><strong>3. Finding files last modified 15 to 30 days ago<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">find \/ -mtime +15 -mtime -30<\/pre>\n<p>This command will find all the files that were modified more than 15days back (+15) and less than 30days back (-30).<\/p>\n<p><strong>4. Finding files changed in the last hour<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">find \/ -cmin - 60<\/pre>\n<p>This command will find all the files that were changed in the last hour.<\/p>\n<p><strong>5. Finding files modified in the last hour<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">find \/ -mmin - 60<\/pre>\n<p>This command will find all the files that were modified in the last hour.<\/p>\n<p><strong>6. Finding files accessed in the last hour<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">find \/ -amin - 60<\/pre>\n<p>This command will find all the files that were accessed in the last hour.<\/p>\n<h3>How to search files based on owner or group?<\/h3>\n<p><strong>1. Finding a single file based on the user<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">find \/ -user root -name dataflair.txt<\/pre>\n<p>This command finds all or single files called \u2018dataflair.txt\u2019 under the\u201d \/ root\u201d directory of owner root.<\/p>\n<p><strong>2. Finding all files based on the user<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">find \/home -user dataflair<\/pre>\n<p>This command finds all the files that belong to user dataflair under the \u201c\/home\u201d directory.<\/p>\n<p><strong>3. Finding all files based on a group<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">find \/home -group programmer<\/pre>\n<p>This command finds all the files belonging to the group \u201cprogrammer\u201d under the \u201c\/home\u201d directory.<\/p>\n<p><strong>4. Finding particular files of a user<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">find \/home -user dataflair -iname \u201c*.txt\u201d<\/pre>\n<p>This command finds all the .txt files of user \u201cdataflair\u201d under the \u201c\/home\u201d directory.<\/p>\n<h3>How to search files based on file size?<\/h3>\n<p><strong>1. Finding files with a size of 30MB<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">find \/ -size 30M<\/pre>\n<p>This command finds files with a size of 30 megabytes<\/p>\n<p><strong>2. Finding files between 30MB and 50MB<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">find \/ -size +30G -size -50G<\/pre>\n<p>This command finds files that are greater than 30 gigabytes (+30G) and less than 50 gigabytes (-50G)<\/p>\n<p><strong>3. Find and delete all 100MB files<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">find \/ -type f -size 100M -exec rm -f {}\\;<\/pre>\n<p>This command finds all files that are of size 100 megabytes and deletes them.<\/p>\n<p><strong>4. Finding and deleting specific files<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">find \/ -type f -name *.mp3 -size +50M exec rm {}\\;<\/pre>\n<p>This command finds all the .mp3 files that are greater than 10 megabytes (+10) and deletes.<\/p>\n<h3>Summary<\/h3>\n<p>As you have seen, the find command is extremely useful to not only do a simple search for a file but also search for a file using many different criteria and in turn perform an action on it. You have seen the different examples of how to use the find command to its fullest, by searching based on date\/time, Owner, size of the file, group, and name of the file.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article, you will learn what the find command in Linux is and the different options used with the find command. You will also learn how to use these options to filter out&#46;&#46;&#46;<\/p>\n","protected":false},"author":5,"featured_media":111501,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35],"tags":[27199,27200],"class_list":["post-111281","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-find-linux-command","tag-linux-find-options"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Find Command in Linux - DataFlair<\/title>\n<meta name=\"description\" content=\"Find command in linux is extremely useful to not only do a simple search for a file but also search for a file using many different criteria.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/find-command-in-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Find Command in Linux - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Find command in linux is extremely useful to not only do a simple search for a file but also search for a file using many different criteria.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/find-command-in-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-01-17T07:54:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/01\/find-linux.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Find Command in Linux - DataFlair","description":"Find command in linux is extremely useful to not only do a simple search for a file but also search for a file using many different criteria.","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:\/\/data-flair.training\/blogs\/find-command-in-linux\/","og_locale":"en_US","og_type":"article","og_title":"Find Command in Linux - DataFlair","og_description":"Find command in linux is extremely useful to not only do a simple search for a file but also search for a file using many different criteria.","og_url":"https:\/\/data-flair.training\/blogs\/find-command-in-linux\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2023-01-17T07:54:18+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/01\/find-linux.webp","type":"image\/webp"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/find-command-in-linux\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/find-command-in-linux\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823"},"headline":"Find Command in Linux","datePublished":"2023-01-17T07:54:18+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/find-command-in-linux\/"},"wordCount":1673,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/find-command-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/01\/find-linux.webp","keywords":["find linux command","linux find options"],"articleSection":["Linux Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/find-command-in-linux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/find-command-in-linux\/","url":"https:\/\/data-flair.training\/blogs\/find-command-in-linux\/","name":"Find Command in Linux - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/find-command-in-linux\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/find-command-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/01\/find-linux.webp","datePublished":"2023-01-17T07:54:18+00:00","description":"Find command in linux is extremely useful to not only do a simple search for a file but also search for a file using many different criteria.","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/find-command-in-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/find-command-in-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/find-command-in-linux\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/01\/find-linux.webp","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/01\/find-linux.webp","width":1200,"height":628,"caption":"find linux"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/find-command-in-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Linux Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/linux\/"},{"@type":"ListItem","position":3,"name":"Find Command in Linux"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"DataFlair Team creates expert-level guides on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our goal is to empower learners with easy-to-understand content. Explore our resources for career growth and practical learning.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam1\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/111281","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=111281"}],"version-history":[{"count":4,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/111281\/revisions"}],"predecessor-version":[{"id":111504,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/111281\/revisions\/111504"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/111501"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=111281"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=111281"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=111281"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}