{"id":1493,"date":"2020-08-28T06:01:10","date_gmt":"2020-08-28T06:01:10","guid":{"rendered":"http:\/\/ubiq.co\/tech-blog\/?p=1493"},"modified":"2025-08-19T06:33:49","modified_gmt":"2025-08-19T06:33:49","slug":"search-file-linux","status":"publish","type":"post","link":"https:\/\/ubiq.co\/tech-blog\/search-file-linux\/","title":{"rendered":"How to Search a File in Linux"},"content":{"rendered":"<p>Many times, you may need to search a file in Unix or to find a file in directory in Linux. You may need to do this as a standalone command, or from within shell script. There are several ways to locate one or more files in Linux. In this article, we will learn how to search a file in Linux. You can use it to search a file in Ubuntu, CentOS, Redhat, Fedora, and other Linux systems.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/ubiq.co\/tech-blog\/search-file-linux\/#How_to_Search_a_File_in_Linux\" >How to Search a File in Linux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/ubiq.co\/tech-blog\/search-file-linux\/#Find_Files_by_Name_in_Linux\" >Find Files by Name in Linux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/ubiq.co\/tech-blog\/search-file-linux\/#How_to_Search_for_Hidden_Files\" >How to Search for Hidden Files<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/ubiq.co\/tech-blog\/search-file-linux\/#Find_Files_by_Type_in_Linux\" >Find Files by Type in Linux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/ubiq.co\/tech-blog\/search-file-linux\/#Search_For_Directories\" >Search For Directories<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/ubiq.co\/tech-blog\/search-file-linux\/#Find_File_by_Size_in_Linux\" >Find File by Size in Linux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/ubiq.co\/tech-blog\/search-file-linux\/#Search_Empty_Files\" >Search Empty Files<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/ubiq.co\/tech-blog\/search-file-linux\/#Find_File_by_Modified_Date_in_Linux\" >Find File by Modified Date in Linux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/ubiq.co\/tech-blog\/search-file-linux\/#Look_for_Files_based_on_Content\" >Look for Files based on Content<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/ubiq.co\/tech-blog\/search-file-linux\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"How_to_Search_a_File_in_Linux\"><\/span>How to Search a File in Linux<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>There are many commands such as locate, find, etc. to search directories for files. Here are the steps to search a file in Linux. We will use the <em>find<\/em> command to search a file in Linux. It is one of the most powerful commands to search for files and directories. It provides very powerful options that are easy to use and understand. Here&#8217;s the syntax of <em>find<\/em> command.<\/p>\n<pre>$ find starting_path options\u00a0 search_expression\n<\/pre>\n<p>In the above command, you need to specify the starting path where <em>find<\/em> command needs to start searching file, options as per your requirement, and the search expression to look for in file attributes.<\/p>\n<p>If you don&#8217;t specify the starting path, <em>find<\/em> command will start searching in your present working directory.<\/p>\n<p>For example, here&#8217;s the command to find &#8220;document.txt&#8221; file in \/home\/ubuntu folder<\/p>\n<pre>$ find \/home\/ubuntu\/ -name document.txt\n<\/pre>\n<p>Please note, <em>find<\/em> command is case-sensitive and does an exact match by default. So it won&#8217;t match files like &#8220;DOCUMENT.TXT&#8221; or &#8220;word-document.txt&#8221;<\/p>\n<p>We will look at some commonly used examples for <em>find<\/em> command.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Find_Files_by_Name_in_Linux\"><\/span>Find Files by Name in Linux<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Here&#8217;s the command to find files by name, with a case-sensitive exact match, using -name option. The following command searches exactly for linux.txt file at \/home folder<\/p>\n<pre>$ find \/home -name linux.txt\n<\/pre>\n<p>The above command will match only linux.txt and no other filename<\/p>\n<p>Here&#8217;s the command to find files by name, with a case-insensitive exact match, using -iname option. The following command searches for unix.txt file at \/home folder<\/p>\n<pre>$ find \/home -iname unix.txt\n<\/pre>\n<p>The above command will match unix.txt, UNIX.TXT but not 123unix.txt.<\/p>\n<p>Here&#8217;s the command to find files by name, using wildcard characters. The following command searches for any file that contains the string unix in its filename. You can use wildcard characters like * to specify search patterns.<\/p>\n<pre>$ find \/home -name \"*unix*\"\n<\/pre>\n<p>The above command will do a case sensitive match for &#8220;unix&#8221; pattern. So it will match 123unix.txt, unix.pdf but not UNIX.TXT<\/p>\n<p>If we use -iname option instead of -name option, it will do a case insensitive match.<\/p>\n<pre>$ find \/home -iname \"*unix*\"\n<\/pre>\n<p>The above command will do a case sensitive match for &#8220;unix&#8221; pattern. So it will match 123unix.txt, unix.pdf and also UNIX.TXT.<\/p>\n<p>We can use the above-mentioned pattern matching to find files by extension. For example, here&#8217;s the find command to search all pdf files in \/home directory<\/p>\n<pre>$ find \/home -name *.pdf\n<\/pre>\n<p>System administrators need to commonly search for log files. Since they end with .log extension, we can easily use the above method to search for log files on your system.<\/p>\n<pre>$ find . -name *.log<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"How_to_Search_for_Hidden_Files\"><\/span>How to Search for Hidden Files<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>In Linux, hidden files start with dot(.) in their filename. Find command also allows you to search specifically for hidden files. You can easily do this using the following command.<\/p>\n<pre>$ find . -type f -name \".*\"<\/pre>\n<p>The above command is similar to searching for files using wildcard patterns in the previous section. Here we specify that our filename starts with dot(.)<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Find_Files_by_Type_in_Linux\"><\/span>Find Files by Type in Linux<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Since there are different file types in Linux, you can use -type option to find files by their type. Here&#8217;s the command to find regular files in \/home directory<\/p>\n<pre>$ find \/home -type f\n<\/pre>\n<p>Here&#8217;s the command to list all empty files in \/home directory using -empty option<\/p>\n<pre>$ find \/home -type f -empty\n<\/pre>\n<p>Here&#8217;s the command to list all symbolic links in \/home folder<\/p>\n<pre>$ find \/home -type l\n<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Search_For_Directories\"><\/span>Search For Directories<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Based on the above example, you can also search for directories in Linux by mentioning d after -type option. Here&#8217;s the command to find all directories in \/home<\/p>\n<pre>$ find \/home -type d\n<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Find_File_by_Size_in_Linux\"><\/span>Find File by Size in Linux<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>You can easily search file by size in Linux using -size option. Here&#8217;s the command to find file greater than 10Mb in \/home folder<\/p>\n<pre>$ find \/home -size +10MB\n<\/pre>\n<p>You can use c, KB, MB, GB to describe file sizes in bytes, kilobytes, megabytes and gigabytes respectively.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Search_Empty_Files\"><\/span>Search Empty Files<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>On the other hand, you may need to sometimes look for empty files in your system. You can do this by mentioning empty after -type option.<\/p>\n<pre>$ find . -type empty<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Find_File_by_Modified_Date_in_Linux\"><\/span>Find File by Modified Date in Linux<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>You can easily search file by modified time in Linux using -mtime option. Here&#8217;s the command to find file modified in last 7 days<\/p>\n<pre>$ find \/home -mtime 7\n<\/pre>\n<p>You need to input number of days after -mtime option above.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Look_for_Files_based_on_Content\"><\/span>Look for Files based on Content<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Find command can also be used in conjunction with other commands such as grep, thanks to -exec option. Grep is a tool that allows you to easily search files and directories for specific content. Here is a simple example to recursively look for all files and directories under current directory, for &#8216;hello world&#8217;.<\/p>\n<pre>$ find . type f -exec grep \"hello world\" '{}' \\;-print<\/pre>\n<p>In the above command, find looks for all files (&#8220;type f&#8221;) in present directory (&#8220;.&#8221;) and executes (-exec) grep command &#8216;grep &#8220;hello world&#8221;&#8216;. We also provide curly braces within single quotes are placeholder for storing results of find command. We use semi colon to terminate the find command and escape it with backslash to prevent shell from interpreting it. Lastly, we print result using -print command.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>In this article, we have learnt several different ways to easily search the file you need, using find command. Although there are several commands to search files and directories, nothing comes close to find, with its options and utility. We have also covered several common use cases system administrators and Linux developers face while searching files and directories. Hopefully, now you can easily search a file in Linux.<\/p>\n<p><a href=\"http:\/\/ubiq.co\/\">Ubiq<\/a>\u00a0makes it easy to visualize data in minutes, and monitor in real-time dashboards.\u00a0<a href=\"http:\/\/ubiq.co\/accounts\/register\">Try it<\/a> today!<\/p>\n<p>Also read:<br \/>\n<a href=\"https:\/\/ubiq.co\/tech-blog\/get-disk-space-linux-unix\/\">How to Calculate Disk Space in Linux<\/a><br \/>\n<a href=\"https:\/\/ubiq.co\/tech-blog\/linux-list-processes-name-user-pid\/\">How to List All Processes in Linux<\/a><br \/>\n<a href=\"https:\/\/ubiq.co\/tech-blog\/how-to-create-tar-gz-file-in-linux\/\">How to Create Tar.gz File in Linux<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Many times you may need to search a file in Linux \/ Unix. Here&#8217;s how to find a file in Ubuntu and other Linux systems.<\/p>\n","protected":false},"author":1,"featured_media":1501,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[110],"tags":[121,129],"class_list":["post-1493","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-find","tag-search-file"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Search a File in Linux - Ubiq BI<\/title>\n<meta name=\"description\" content=\"Many times you may need to search a file in Linux \/ Unix. Here&#039;s how to find a file in Ubuntu and other Linux systems.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ubiq.co\/tech-blog\/search-file-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Search a File in Linux - Ubiq BI\" \/>\n<meta property=\"og:description\" content=\"Many times you may need to search a file in Linux \/ Unix. Here&#039;s how to find a file in Ubuntu and other Linux systems.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ubiq.co\/tech-blog\/search-file-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"Ubiq BI\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/ubiqbi\" \/>\n<meta property=\"article:published_time\" content=\"2020-08-28T06:01:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-19T06:33:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/08\/search-files-in-linux.png\" \/>\n\t<meta property=\"og:image:width\" content=\"674\" \/>\n\t<meta property=\"og:image:height\" content=\"397\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Sreeram Sreenivasan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@UbiqBI\" \/>\n<meta name=\"twitter:site\" content=\"@UbiqBI\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sreeram Sreenivasan\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/ubiq.co\/tech-blog\/search-file-linux\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/ubiq.co\/tech-blog\/search-file-linux\/\"},\"author\":{\"name\":\"Sreeram Sreenivasan\",\"@id\":\"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc\"},\"headline\":\"How to Search a File in Linux\",\"datePublished\":\"2020-08-28T06:01:10+00:00\",\"dateModified\":\"2025-08-19T06:33:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/ubiq.co\/tech-blog\/search-file-linux\/\"},\"wordCount\":1006,\"image\":{\"@id\":\"https:\/\/ubiq.co\/tech-blog\/search-file-linux\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/08\/search-files-in-linux.png?fit=674%2C397&ssl=1\",\"keywords\":[\"find\",\"search file\"],\"articleSection\":[\"Linux\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ubiq.co\/tech-blog\/search-file-linux\/\",\"url\":\"https:\/\/ubiq.co\/tech-blog\/search-file-linux\/\",\"name\":\"How to Search a File in Linux - Ubiq BI\",\"isPartOf\":{\"@id\":\"https:\/\/ubiq.co\/tech-blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/ubiq.co\/tech-blog\/search-file-linux\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/ubiq.co\/tech-blog\/search-file-linux\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/08\/search-files-in-linux.png?fit=674%2C397&ssl=1\",\"datePublished\":\"2020-08-28T06:01:10+00:00\",\"dateModified\":\"2025-08-19T06:33:49+00:00\",\"author\":{\"@id\":\"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc\"},\"description\":\"Many times you may need to search a file in Linux \/ Unix. Here's how to find a file in Ubuntu and other Linux systems.\",\"breadcrumb\":{\"@id\":\"https:\/\/ubiq.co\/tech-blog\/search-file-linux\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ubiq.co\/tech-blog\/search-file-linux\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/ubiq.co\/tech-blog\/search-file-linux\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/08\/search-files-in-linux.png?fit=674%2C397&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/08\/search-files-in-linux.png?fit=674%2C397&ssl=1\",\"width\":674,\"height\":397,\"caption\":\"search file in linux\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ubiq.co\/tech-blog\/search-file-linux\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/ubiq.co\/tech-blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Search a File in Linux\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ubiq.co\/tech-blog\/#website\",\"url\":\"https:\/\/ubiq.co\/tech-blog\/\",\"name\":\"Ubiq BI\",\"description\":\"Build dashboards &amp; reports in minutes\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/ubiq.co\/tech-blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc\",\"name\":\"Sreeram Sreenivasan\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g\",\"caption\":\"Sreeram Sreenivasan\"},\"description\":\"Sreeram Sreenivasan is the Founder of Ubiq. He has helped many Fortune 500 companies in the areas of BI &amp; software development.\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/sreeram-sreenivasan\/\"],\"url\":\"https:\/\/ubiq.co\/tech-blog\/author\/wordpress\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Search a File in Linux - Ubiq BI","description":"Many times you may need to search a file in Linux \/ Unix. Here's how to find a file in Ubuntu and other Linux systems.","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:\/\/ubiq.co\/tech-blog\/search-file-linux\/","og_locale":"en_US","og_type":"article","og_title":"How to Search a File in Linux - Ubiq BI","og_description":"Many times you may need to search a file in Linux \/ Unix. Here's how to find a file in Ubuntu and other Linux systems.","og_url":"https:\/\/ubiq.co\/tech-blog\/search-file-linux\/","og_site_name":"Ubiq BI","article_publisher":"https:\/\/www.facebook.com\/ubiqbi","article_published_time":"2020-08-28T06:01:10+00:00","article_modified_time":"2025-08-19T06:33:49+00:00","og_image":[{"width":674,"height":397,"url":"https:\/\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/08\/search-files-in-linux.png","type":"image\/png"}],"author":"Sreeram Sreenivasan","twitter_card":"summary_large_image","twitter_creator":"@UbiqBI","twitter_site":"@UbiqBI","twitter_misc":{"Written by":"Sreeram Sreenivasan","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ubiq.co\/tech-blog\/search-file-linux\/#article","isPartOf":{"@id":"https:\/\/ubiq.co\/tech-blog\/search-file-linux\/"},"author":{"name":"Sreeram Sreenivasan","@id":"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc"},"headline":"How to Search a File in Linux","datePublished":"2020-08-28T06:01:10+00:00","dateModified":"2025-08-19T06:33:49+00:00","mainEntityOfPage":{"@id":"https:\/\/ubiq.co\/tech-blog\/search-file-linux\/"},"wordCount":1006,"image":{"@id":"https:\/\/ubiq.co\/tech-blog\/search-file-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/08\/search-files-in-linux.png?fit=674%2C397&ssl=1","keywords":["find","search file"],"articleSection":["Linux"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/ubiq.co\/tech-blog\/search-file-linux\/","url":"https:\/\/ubiq.co\/tech-blog\/search-file-linux\/","name":"How to Search a File in Linux - Ubiq BI","isPartOf":{"@id":"https:\/\/ubiq.co\/tech-blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/ubiq.co\/tech-blog\/search-file-linux\/#primaryimage"},"image":{"@id":"https:\/\/ubiq.co\/tech-blog\/search-file-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/08\/search-files-in-linux.png?fit=674%2C397&ssl=1","datePublished":"2020-08-28T06:01:10+00:00","dateModified":"2025-08-19T06:33:49+00:00","author":{"@id":"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc"},"description":"Many times you may need to search a file in Linux \/ Unix. Here's how to find a file in Ubuntu and other Linux systems.","breadcrumb":{"@id":"https:\/\/ubiq.co\/tech-blog\/search-file-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ubiq.co\/tech-blog\/search-file-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ubiq.co\/tech-blog\/search-file-linux\/#primaryimage","url":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/08\/search-files-in-linux.png?fit=674%2C397&ssl=1","contentUrl":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/08\/search-files-in-linux.png?fit=674%2C397&ssl=1","width":674,"height":397,"caption":"search file in linux"},{"@type":"BreadcrumbList","@id":"https:\/\/ubiq.co\/tech-blog\/search-file-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ubiq.co\/tech-blog\/"},{"@type":"ListItem","position":2,"name":"How to Search a File in Linux"}]},{"@type":"WebSite","@id":"https:\/\/ubiq.co\/tech-blog\/#website","url":"https:\/\/ubiq.co\/tech-blog\/","name":"Ubiq BI","description":"Build dashboards &amp; reports in minutes","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ubiq.co\/tech-blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc","name":"Sreeram Sreenivasan","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g","caption":"Sreeram Sreenivasan"},"description":"Sreeram Sreenivasan is the Founder of Ubiq. He has helped many Fortune 500 companies in the areas of BI &amp; software development.","sameAs":["https:\/\/www.linkedin.com\/in\/sreeram-sreenivasan\/"],"url":"https:\/\/ubiq.co\/tech-blog\/author\/wordpress\/"}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/08\/search-files-in-linux.png?fit=674%2C397&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/pbGGTT-o5","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts\/1493","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/comments?post=1493"}],"version-history":[{"count":19,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts\/1493\/revisions"}],"predecessor-version":[{"id":9218,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts\/1493\/revisions\/9218"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/media\/1501"}],"wp:attachment":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/media?parent=1493"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/categories?post=1493"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/tags?post=1493"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}