{"id":10899,"date":"2024-01-18T05:48:23","date_gmt":"2024-01-18T05:48:23","guid":{"rendered":"https:\/\/greenwebpage.com\/community\/?p=10899"},"modified":"2024-01-21T12:24:11","modified_gmt":"2024-01-21T12:24:11","slug":"how-to-use-find-and-locate-to-search-for-files-on-linux","status":"publish","type":"post","link":"https:\/\/greenwebpage.com\/community\/how-to-use-find-and-locate-to-search-for-files-on-linux\/","title":{"rendered":"How to Use Find and Locate to Search for Files on Linux?"},"content":{"rendered":"<p>Searching for files helps people quickly find important information they need for modification. On Linux, the Find and Locate commands are powerful tools that assist users in efficiently managing and searching the file system.<\/p>\n<p>Both of these commands are used to navigate files based on criteria including file type, time frame, or size of the file and folder.<\/p>\n<p>The main objective of this educational post is to empower you to use the Find and Locate commands to easily search for files on the Linux system.<\/p>\n<h2><strong>How to Use Find and Locate to Search for Files on Linux?<\/strong><\/h2>\n<p>The following two methods are the most common ways to navigate files and directories on a Linux system.<\/p>\n<h3><strong>How to Use Find to Search Files on Linux System<\/strong><\/h3>\n<p>With the help of these examples, you will see the use of the Find command to filter or search files on Linux.<\/p>\n<h4>Displays the Current Working Directory<\/h4>\n<p>If you are looking for specific files and directories, the first step is to locate your present working directory:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>pwd<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img fetchpriority=\"high\" decoding=\"async\" width=\"848\" height=\"74\" class=\"wp-image-10900\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/word-image-10899-1.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/word-image-10899-1.png 848w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/word-image-10899-1-300x26.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/word-image-10899-1-768x67.png 768w\" sizes=\"(max-width: 848px) 100vw, 848px\" \/><\/pre>\n<p>By executing the command, you will see the absolute path of your current working folder. This information will make it easy for you to search for specific files and folders.<\/p>\n<h4>Find All Files and Folders<\/h4>\n<p>The find command followed by path and expression, will show all files and directories inside the <strong>~\/Documents<\/strong>:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>find ~\/Documents -name \"*\"<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img decoding=\"async\" width=\"936\" height=\"439\" class=\"wp-image-10901\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/word-image-10899-2.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/word-image-10899-2.png 936w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/word-image-10899-2-300x141.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/word-image-10899-2-768x360.png 768w\" sizes=\"(max-width: 936px) 100vw, 936px\" \/><\/pre>\n<h4>Search for All Text Files<\/h4>\n<p>Use the <strong>*.txt<\/strong> expression with the <strong>find<\/strong> command to particularly target text files within the specified folder, such as <strong>~\/Documents<\/strong>:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>find ~\/Documents -name \"*.txt\"<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img decoding=\"async\" width=\"929\" height=\"77\" class=\"wp-image-10902\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/word-image-10899-3.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/word-image-10899-3.png 929w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/word-image-10899-3-300x25.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/word-image-10899-3-768x64.png 768w\" sizes=\"(max-width: 929px) 100vw, 929px\" \/><\/pre>\n<p>After running the command, you will see the existing file with the txt extension with the ~\/Document directory.<\/p>\n<h4>Search Files Modified Within a Particular Time<\/h4>\n<p>If you are searching for files and folders modified within a specific time frame, such as the last seven days, execute the find command with the following expression:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>find ~\/Documents -mtime -7<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img loading=\"lazy\" decoding=\"async\" width=\"934\" height=\"437\" class=\"wp-image-10903\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/word-image-10899-4.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/word-image-10899-4.png 934w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/word-image-10899-4-300x140.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/word-image-10899-4-768x359.png 768w\" sizes=\"(max-width: 934px) 100vw, 934px\" \/><\/pre>\n<p><strong>Note:<\/strong> To search for files modified more than seven days, add <strong>-mtime +7<\/strong> with the command.<\/p>\n<h4>Search Files and Directories by Size<\/h4>\n<p>The find command also empowers you to search files and folders by their size. The following example will view the files\/folders that are up to two megabytes (2MBs) in size:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>find ~\/Documents -size -2M<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img loading=\"lazy\" decoding=\"async\" width=\"934\" height=\"440\" class=\"wp-image-10904\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/word-image-10899-5.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/word-image-10899-5.png 934w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/word-image-10899-5-300x141.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/word-image-10899-5-768x362.png 768w\" sizes=\"(max-width: 934px) 100vw, 934px\" \/><\/pre>\n<p>The files and directories smaller than 2MBs will be displayed on your terminal screen.<\/p>\n<h4>Search Files by Size<\/h4>\n<p>You can further refine your search to display only files within ~\/Documents by adding <strong>-type f<\/strong> to the command:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>find ~\/Documents -size -2M -type f<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img loading=\"lazy\" decoding=\"async\" width=\"940\" height=\"292\" class=\"wp-image-10905\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/word-image-10899-6.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/word-image-10899-6.png 940w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/word-image-10899-6-300x93.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/word-image-10899-6-768x239.png 768w\" sizes=\"(max-width: 940px) 100vw, 940px\" \/><\/pre>\n<p>This command will exclude the directories and will display the files only.<\/p>\n<h4><span style=\"color: #2962ff;\"><span style=\"background-color: #d5d5d5;\">S<\/span><\/span>earch Files by Case-Insensitive<\/h4>\n<p>To ignore case sensitivity while searching for files, use the <strong>-iname<\/strong> flag with the command:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>find ~\/Documents -iname \"file*.csv\"<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img loading=\"lazy\" decoding=\"async\" width=\"957\" height=\"77\" class=\"wp-image-10906\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/word-image-10899-7.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/word-image-10899-7.png 957w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/word-image-10899-7-300x24.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/word-image-10899-7-768x62.png 768w\" sizes=\"(max-width: 957px) 100vw, 957px\" \/><\/pre>\n<h4>Search Multiple Types of Files<\/h4>\n<p>You can search for multiple files using the <strong>-o<\/strong> flag with the command. This will show files with both .txt and .doc extensions within the ~\/Documents directory:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>sudo find ~\/Documents -name \"*.txt\" -o -name \"*.doc\"<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img loading=\"lazy\" decoding=\"async\" width=\"970\" height=\"129\" class=\"wp-image-10907\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/word-image-10899-8.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/word-image-10899-8.png 970w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/word-image-10899-8-300x40.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/word-image-10899-8-768x102.png 768w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/word-image-10899-8-960x129.png 960w\" sizes=\"(max-width: 970px) 100vw, 970px\" \/><\/pre>\n<p>The command will display files that match the .txt or\/and .doc extensions.<\/p>\n<h3><strong>How to Use Locate to Search Files on Linux<\/strong><\/h3>\n<p>The following examples will illustrate the use of the Locate package to search files on Linux.<\/p>\n<h4><strong>Install locate Package via APT<\/strong><\/h4>\n<p>The <strong>locate<\/strong> package is not installed by default in Linux systems but can be installed using the APT package manager. To install the locate complete package, execute the command in your terminal:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>sudo apt install plocate -y<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img loading=\"lazy\" decoding=\"async\" width=\"975\" height=\"485\" class=\"wp-image-10908\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/word-image-10899-9.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/word-image-10899-9.png 975w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/word-image-10899-9-300x149.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/word-image-10899-9-768x382.png 768w\" sizes=\"(max-width: 975px) 100vw, 975px\" \/> <img loading=\"lazy\" decoding=\"async\" width=\"974\" height=\"479\" class=\"wp-image-10909\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/word-image-10899-10.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/word-image-10899-10.png 974w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/word-image-10899-10-300x148.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/word-image-10899-10-768x378.png 768w\" sizes=\"(max-width: 974px) 100vw, 974px\" \/><\/pre>\n<p>If no errors were encountered during the installation, the package has been installed on your Linux system.<\/p>\n<h4>Search for Files in the System<\/h4>\n<p>Run the command to locate all files with a PDF extension across the entire system:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>sudo locate *.pdf<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img loading=\"lazy\" decoding=\"async\" width=\"973\" height=\"414\" class=\"wp-image-10910\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/word-image-10899-11.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/word-image-10899-11.png 973w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/word-image-10899-11-300x128.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/word-image-10899-11-768x327.png 768w\" sizes=\"(max-width: 973px) 100vw, 973px\" \/><\/pre>\n<p>If the PDF files exist, the command will display them on your terminal screen.<\/p>\n<h4>Search for Files in the Specific Location<\/h4>\n<p>Search for files with the <strong>.csv<\/strong> extension specifically within the <strong>~\/Documents<\/strong> directory:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<pre>sudo locate -i ~\/Documents\/*.csv<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img loading=\"lazy\" decoding=\"async\" width=\"955\" height=\"77\" class=\"wp-image-10911\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/word-image-10899-12.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/word-image-10899-12.png 955w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/word-image-10899-12-300x24.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/word-image-10899-12-768x62.png 768w\" sizes=\"(max-width: 955px) 100vw, 955px\" \/><\/pre>\n<p>The <strong>-i <\/strong>flag ignores case sensitivity while searching for files.<\/p>\n<h2>Conclusion<\/h2>\n<p>In Linux, the Find and Locate commands are the most common ways to navigate files and folders within the system. These commands empower users to specify various criteria while searching for files.<\/p>\n<p>This educational post provided you with an insight into how to use Find and Locate to search for files on a Linux system.<\/p>\n\n    <div class=\"xs_social_share_widget xs_share_url after_content \t\tmain_content  wslu-style-1 wslu-share-box-shaped wslu-fill-colored wslu-none wslu-share-horizontal wslu-theme-font-no wslu-main_content\">\n\n\t\t\n        <ul>\n\t\t\t        <\/ul>\n    <\/div> \n","protected":false},"excerpt":{"rendered":"<p>Searching for files helps people quickly find important information they need for modification. On Linux, the Find and Locate commands are powerful tools that assist users in efficiently managing and searching the file system. Both of these commands are used to navigate files based on criteria including file type, time frame, or size of the [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":10915,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43],"tags":[268,230,269],"class_list":["post-10899","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-find","tag-linux","tag-locate"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Use Find and Locate to Search for Files on Linux? - Greenwebpage Community<\/title>\n<meta name=\"description\" content=\"The main objective of this post is to empower you to use the Find and Locate commands to easily search for files on the Linux system.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/greenwebpage.com\/community\/how-to-use-find-and-locate-to-search-for-files-on-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Use Find and Locate to Search for Files on Linux? - Greenwebpage Community\" \/>\n<meta property=\"og:description\" content=\"The main objective of this post is to empower you to use the Find and Locate commands to easily search for files on the Linux system.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/greenwebpage.com\/community\/how-to-use-find-and-locate-to-search-for-files-on-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"Greenwebpage Community\" \/>\n<meta property=\"article:published_time\" content=\"2024-01-18T05:48:23+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-21T12:24:11+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/How-To-Use-Find-and-Locate_-Search-for-Files-on-Linux.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1020\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Karim Buzdar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Karim Buzdar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-use-find-and-locate-to-search-for-files-on-linux\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-use-find-and-locate-to-search-for-files-on-linux\/\"},\"author\":{\"name\":\"Karim Buzdar\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8\"},\"headline\":\"How to Use Find and Locate to Search for Files on Linux?\",\"datePublished\":\"2024-01-18T05:48:23+00:00\",\"dateModified\":\"2024-01-21T12:24:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-use-find-and-locate-to-search-for-files-on-linux\/\"},\"wordCount\":678,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-use-find-and-locate-to-search-for-files-on-linux\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/How-To-Use-Find-and-Locate_-Search-for-Files-on-Linux.jpg\",\"keywords\":[\"Find\",\"Linux\",\"Locate\"],\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/greenwebpage.com\/community\/how-to-use-find-and-locate-to-search-for-files-on-linux\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-use-find-and-locate-to-search-for-files-on-linux\/\",\"url\":\"https:\/\/greenwebpage.com\/community\/how-to-use-find-and-locate-to-search-for-files-on-linux\/\",\"name\":\"How to Use Find and Locate to Search for Files on Linux? - Greenwebpage Community\",\"isPartOf\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-use-find-and-locate-to-search-for-files-on-linux\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-use-find-and-locate-to-search-for-files-on-linux\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/How-To-Use-Find-and-Locate_-Search-for-Files-on-Linux.jpg\",\"datePublished\":\"2024-01-18T05:48:23+00:00\",\"dateModified\":\"2024-01-21T12:24:11+00:00\",\"description\":\"The main objective of this post is to empower you to use the Find and Locate commands to easily search for files on the Linux system.\",\"breadcrumb\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-use-find-and-locate-to-search-for-files-on-linux\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/greenwebpage.com\/community\/how-to-use-find-and-locate-to-search-for-files-on-linux\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-use-find-and-locate-to-search-for-files-on-linux\/#primaryimage\",\"url\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/How-To-Use-Find-and-Locate_-Search-for-Files-on-Linux.jpg\",\"contentUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/How-To-Use-Find-and-Locate_-Search-for-Files-on-Linux.jpg\",\"width\":1020,\"height\":600,\"caption\":\"How To Use Find and Locate_ Search for Files on Linux\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-use-find-and-locate-to-search-for-files-on-linux\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/greenwebpage.com\/community\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Use Find and Locate to Search for Files on Linux?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#website\",\"url\":\"https:\/\/greenwebpage.com\/community\/\",\"name\":\"Greenwebpage Community\",\"description\":\"Get online in three steps with our wide range of web hosting solutions. Choose from professional business to enterprise options designed to meet your needs.\",\"publisher\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/greenwebpage.com\/community\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\",\"name\":\"Greenwebpage Community\",\"url\":\"https:\/\/greenwebpage.com\/community\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png\",\"contentUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png\",\"width\":512,\"height\":512,\"caption\":\"Greenwebpage Community\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8\",\"name\":\"Karim Buzdar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g\",\"caption\":\"Karim Buzdar\"},\"sameAs\":[\"https:\/\/greenwebpage.com\"],\"url\":\"https:\/\/greenwebpage.com\/community\/author\/karim\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Use Find and Locate to Search for Files on Linux? - Greenwebpage Community","description":"The main objective of this post is to empower you to use the Find and Locate commands to easily search for files on the Linux system.","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:\/\/greenwebpage.com\/community\/how-to-use-find-and-locate-to-search-for-files-on-linux\/","og_locale":"en_US","og_type":"article","og_title":"How to Use Find and Locate to Search for Files on Linux? - Greenwebpage Community","og_description":"The main objective of this post is to empower you to use the Find and Locate commands to easily search for files on the Linux system.","og_url":"https:\/\/greenwebpage.com\/community\/how-to-use-find-and-locate-to-search-for-files-on-linux\/","og_site_name":"Greenwebpage Community","article_published_time":"2024-01-18T05:48:23+00:00","article_modified_time":"2024-01-21T12:24:11+00:00","og_image":[{"width":1020,"height":600,"url":"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/How-To-Use-Find-and-Locate_-Search-for-Files-on-Linux.jpg","type":"image\/jpeg"}],"author":"Karim Buzdar","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Karim Buzdar","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/greenwebpage.com\/community\/how-to-use-find-and-locate-to-search-for-files-on-linux\/#article","isPartOf":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-use-find-and-locate-to-search-for-files-on-linux\/"},"author":{"name":"Karim Buzdar","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8"},"headline":"How to Use Find and Locate to Search for Files on Linux?","datePublished":"2024-01-18T05:48:23+00:00","dateModified":"2024-01-21T12:24:11+00:00","mainEntityOfPage":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-use-find-and-locate-to-search-for-files-on-linux\/"},"wordCount":678,"commentCount":0,"publisher":{"@id":"https:\/\/greenwebpage.com\/community\/#organization"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-use-find-and-locate-to-search-for-files-on-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/How-To-Use-Find-and-Locate_-Search-for-Files-on-Linux.jpg","keywords":["Find","Linux","Locate"],"articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/greenwebpage.com\/community\/how-to-use-find-and-locate-to-search-for-files-on-linux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/greenwebpage.com\/community\/how-to-use-find-and-locate-to-search-for-files-on-linux\/","url":"https:\/\/greenwebpage.com\/community\/how-to-use-find-and-locate-to-search-for-files-on-linux\/","name":"How to Use Find and Locate to Search for Files on Linux? - Greenwebpage Community","isPartOf":{"@id":"https:\/\/greenwebpage.com\/community\/#website"},"primaryImageOfPage":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-use-find-and-locate-to-search-for-files-on-linux\/#primaryimage"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-use-find-and-locate-to-search-for-files-on-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/How-To-Use-Find-and-Locate_-Search-for-Files-on-Linux.jpg","datePublished":"2024-01-18T05:48:23+00:00","dateModified":"2024-01-21T12:24:11+00:00","description":"The main objective of this post is to empower you to use the Find and Locate commands to easily search for files on the Linux system.","breadcrumb":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-use-find-and-locate-to-search-for-files-on-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/greenwebpage.com\/community\/how-to-use-find-and-locate-to-search-for-files-on-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/how-to-use-find-and-locate-to-search-for-files-on-linux\/#primaryimage","url":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/How-To-Use-Find-and-Locate_-Search-for-Files-on-Linux.jpg","contentUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/01\/How-To-Use-Find-and-Locate_-Search-for-Files-on-Linux.jpg","width":1020,"height":600,"caption":"How To Use Find and Locate_ Search for Files on Linux"},{"@type":"BreadcrumbList","@id":"https:\/\/greenwebpage.com\/community\/how-to-use-find-and-locate-to-search-for-files-on-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/greenwebpage.com\/community\/"},{"@type":"ListItem","position":2,"name":"How to Use Find and Locate to Search for Files on Linux?"}]},{"@type":"WebSite","@id":"https:\/\/greenwebpage.com\/community\/#website","url":"https:\/\/greenwebpage.com\/community\/","name":"Greenwebpage Community","description":"Get online in three steps with our wide range of web hosting solutions. Choose from professional business to enterprise options designed to meet your needs.","publisher":{"@id":"https:\/\/greenwebpage.com\/community\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/greenwebpage.com\/community\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/greenwebpage.com\/community\/#organization","name":"Greenwebpage Community","url":"https:\/\/greenwebpage.com\/community\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/","url":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png","contentUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png","width":512,"height":512,"caption":"Greenwebpage Community"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8","name":"Karim Buzdar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g","caption":"Karim Buzdar"},"sameAs":["https:\/\/greenwebpage.com"],"url":"https:\/\/greenwebpage.com\/community\/author\/karim\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/10899","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/comments?post=10899"}],"version-history":[{"count":1,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/10899\/revisions"}],"predecessor-version":[{"id":10913,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/10899\/revisions\/10913"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/media\/10915"}],"wp:attachment":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/media?parent=10899"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/categories?post=10899"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/tags?post=10899"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}