{"id":72652,"date":"2021-05-12T09:00:00","date_gmt":"2021-05-12T13:00:00","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/?p=72652"},"modified":"2025-02-19T13:49:49","modified_gmt":"2025-02-19T18:49:49","slug":"to-find-a-file-in-linux","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/server\/linux\/to-find-a-file-in-linux\/","title":{"rendered":"5 Ways to Find a File in Linux"},"content":{"rendered":"<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"538\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/05\/canva-find-a-file-in-linux-1024x538.jpg\" alt=\"How to Find a File in Linux (7 Methods)\" class=\"wp-image-72654\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/05\/canva-find-a-file-in-linux-1024x538.jpg 1024w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/05\/canva-find-a-file-in-linux-300x158.jpg 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/05\/canva-find-a-file-in-linux-768x403.jpg 768w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/05\/canva-find-a-file-in-linux.jpg 1200w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><\/figure>\n\n\n\n<p>Your Linux command-line interface (CLI) likely has many native options for how to find a file in Linux in all directories. You can have Linux find text in files and metadata. You can quickly list files that were changed within a specific time frame, useful for <a href=\"https:\/\/www.inmotionhosting.com\/support\/security\/install-splunk\/\"><strong>security information and event management (SIEM)<\/strong><\/a>. There are also graphical applications for Linux systems with a desktop environment such as GNOME or Cinnamon.<\/p>\n\n\n\n<p>While there are many programs that can be used to find a file in Linux, not all are best suited for everyone\u2019s common usage. They\u2019re sorted based on how much you can do with the program.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"terminal\">Terminal Commands to find Files and Directories<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Find Files in Linux with the <code>ls<\/code> Command and Glob Patterns<\/h3>\n\n\n\n<p>The <code>ls<\/code> command is one of the most fundamental tools in any System Administrator\u2019s toolbox. While not powerful or flexible as more advanced tools like <code>find<\/code> or <code>locate<\/code>, it\u2019s often good enough and easier to remember when you need to find a file or directory in Linux.<\/p>\n\n\n\n<p>Glob patterns are similar to regular expressions, but also much simpler to remember and create. Glob patterns use the <code>*<\/code> (asterisk), <code>?<\/code> (question mark), and <code>[]<\/code> (square brackets) to create search patterns with \u201cwild cards.\u201d <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>*<\/code> matches any string of any length (including no length)<\/li>\n\n\n\n<li><code>?<\/code> matches any single character<\/li>\n\n\n\n<li><code>**<\/code> matches zero or more directories<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">Examples<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Find all files with a certain file extension, in any subdirectory of a certain location. In this example, we\u2019ll list all of the PDF\u2019s in the WordPress Media Library from the document root of the website\n<ul class=\"wp-block-list\">\n<li><code>ls .\/wp-content\/uploads\/**\/*.pdf<\/code><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Find a file with a date range in the filename. In this example, we\u2019ll search a list of backup files from any day in February 2025 from a list of files using the format backup-DD_MM_YYYY.zip\n<ul class=\"wp-block-list\">\n<li><code>ls backup-??_02_2025.zip<\/code><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"find\">Find Files in Linux with <code>find<\/code><\/h3>\n\n\n\n<p><code>find<\/code> is the most powerful tool on this list to find a file in Linux. Starting off, to view all regular and hidden files in a directory (and its sub-directories):<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">find .<\/pre>\n\n\n\n<p class=\"alert alert-info\">\u201c.\u201d means to start from the current directory.<br>\u201c~\u201d means to start from the current user home directory.<br>\u201c\/\u201d means to start from the system root directory.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">find \/var\/www\/html\/<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">find public_html\/<\/pre>\n\n\n\n<p>The results will look similar to the <code>ls<\/code> command. You can add <code>| less<\/code> at the end to easily scroll through results.<\/p>\n\n\n\n<p>To narrow your search, you <em>could<\/em> use grep. However, the find command includes flexible options to provide the results you need.<\/p>\n\n\n\n<p>To view files and directories that start with \u201cbackup\u201d (case-sensitive):<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">find . -name \"backup*\"<\/pre>\n\n\n\n<p>Use <code>-iname<\/code> instead for a case-insensitive search.<\/p>\n\n\n\n<p>To filter results to only regular files, add <code>-type f<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">find . -type f -iname \"backup*\"<\/pre>\n\n\n\n<p>To only list directories, add <code>-type d<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">find . -type d -iname \"backup*\"<\/pre>\n\n\n\n<p>You can filter results by size, under (-) or over (+) a specified number of kilobytes (k), megabytes (M), or gigabytes (G). Continuing with our examples above, to only show files over 1 megabyte starting with \u201cbackup\u201d:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">find . -type f -size +1M -iname \"backup*\"<\/pre>\n\n\n\n<p>You can combine search filters to narrow down results with <code>-and<\/code>, <code>-or<\/code>, and <code>-not<\/code>. To find files above 10 megabytes that are not zip or gz files:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">find . -type f -size +10M -not -iname \"*zip\" -and -not -iname \"*gz\"<\/pre>\n\n\n\n<p>To search by <a href=\"https:\/\/www.inmotionhosting.com\/support\/security\/file-permissions\/\">permissions<\/a>, use <code>-perm<\/code> followed by the permissions set:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">find . -perm 777<\/pre>\n\n\n\n<p>Execute commands with search results by adding <code>-exec<\/code>, the command to execute against the results, and <code>{} \\;<\/code> at the end. The example below creates a sha512 <a href=\"https:\/\/www.inmotionhosting.com\/support\/security\/create-checksum-locally\/\">checksum<\/a> for all \u201cbackup\u201d files found.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">find -iname \"backup*\" -exec sha512sum {} \\;<\/pre>\n\n\n\n<p>You can search for files accessed during, before (-), or after (+) a specified time frame. To list files accessed within the last 24 hours:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">find . -atime -1<\/pre>\n\n\n\n<p>Within 60 minutes:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">find . -amin 60<\/pre>\n\n\n\n<p>To view files in your home folder modified over 365 days ago:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">find . -mtime +365<\/pre>\n\n\n\n<p>Within 60 minutes:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">find . -mmin 60<\/pre>\n\n\n\n<p>To print output to the end of a text file, you can use <code>&gt;&gt; file.txt<\/code> or add the following to the end of your query:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">-fprint newfile<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"locate\">Locate Files in Linux<\/h3>\n\n\n\n<p>The <code>locate<\/code> command is much faster than <code>find<\/code> because it uses a pre-existing database updated by a cron job. To update the locate database manually:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo updatedb<\/pre>\n\n\n\n<p>Unlike the find command, locate searches the entire system by default. Therefore, searching for files and directories including \u201cbackup\u201d in the name will return results from all directories. The results use the <code>--wholename<\/code> option by default.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">locate backup<\/pre>\n\n\n\n<p>To search only the base name, instead of the entire file path, for a query:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">locate -b '\\backup'<\/pre>\n\n\n\n<p>You can use <code>-i<\/code> for a case insensitive search. In the example below, results would include files and directories starting with \u201cbackup\u201d and \u201cBackup.\u201d<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">locate -i \"*\\backup\"<\/pre>\n\n\n\n<p><code>mlocate<\/code> takes over locate commands to find a file in Linux if both are installed. Unlike locate, mlocate only displays files accessible by the user.<\/p>\n\n\n\n<p class=\"alert alert-info\">Find file paths to executables with commands like <code>which<\/code> and <code>whereis<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"graphical\">Graphical Applications to Find Files and Directories<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"catfish\">Catfish<\/h3>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"alignright size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"961\" height=\"523\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/05\/catfish.png\" alt=\"Using Catfish to find a file in Linux\" class=\"wp-image-72651\" style=\"width:481px;height:262px\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/05\/catfish.png 961w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/05\/catfish-300x163.png 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/05\/catfish-768x418.png 768w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><\/figure>\n<\/div>\n\n\n<p><strong>Catfish<\/strong> is a graphical search application to find a file in Linux desktop systems. It is often included in XFCE desktop environments (DEs). You can search directories by:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>File type\u00a0<\/li>\n\n\n\n<li>Date modified<\/li>\n\n\n\n<li>File contents<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"kfind\">KFind<\/h3>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"alignright size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"671\" height=\"495\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/05\/kfind.png\" alt=\"Using KFind to find a file in Linux\" class=\"wp-image-72650\" style=\"width:481px;height:349px\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/05\/kfind.png 671w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/05\/kfind-300x221.png 300w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><\/figure>\n<\/div>\n\n\n<p><strong><a href=\"https:\/\/apps.kde.org\/kfind\/\" target=\"_blank\" aria-label=\"KFind (opens in a new tab)\" rel=\"noreferrer noopener\">KFind<\/a><\/strong> is a more advanced graphical search application native to KDE and the Konqueror file manager. The software allows you to filter searches by:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>File type\u00a0<\/li>\n\n\n\n<li>Date modified<\/li>\n\n\n\n<li>File contents<\/li>\n\n\n\n<li>File metadata<\/li>\n\n\n\n<li>Date created<\/li>\n\n\n\n<li>File owner<\/li>\n\n\n\n<li>File size<\/li>\n<\/ul>\n\n\n\n<p>Learn more about managing headless Linux systems with our <a href=\"https:\/\/www.inmotionhosting.com\/support\/product-guides\/cloud-server\/\">Cloud Server Hosting Product Guide<\/a>.<\/p>\n\n\n<div class=\"jumbotron\">\r\n<p>If you don\u2019t need cPanel, don't pay for it. Only pay for what you need with our scalable <a href=\"https:\/\/www.inmotionhosting.com\/cloud-vps\">Cloud VPS Hosting<\/a>.<\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/design.inmotionhosting.com\/assets\/icons\/standard\/check-blue.svg\" alt=\"check mark\" width=\"24\" height=\"24\" \/>CentOS, Debian, or Ubuntu    <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/design.inmotionhosting.com\/assets\/icons\/standard\/check-blue.svg\" alt=\"check mark\" width=\"24\" height=\"24\" \/>No Bloatware    <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/design.inmotionhosting.com\/assets\/icons\/standard\/check-blue.svg\" alt=\"check mark\" width=\"24\" height=\"24\" \/>SSH and Root Access<\/p>\r\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Your Linux command-line interface (CLI) likely has many native options for how to find a file in Linux in all directories. You can have Linux find text in files and metadata. You can quickly list files that were changed within a specific time frame, useful for security information and event management (SIEM). There are also<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/server\/linux\/to-find-a-file-in-linux\/\"> Read More ><\/a><\/p>\n","protected":false},"author":57020,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4308],"tags":[],"class_list":["post-72652","post","type-post","status-publish","format-standard","hentry","category-linux"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>7 Easy Ways to Find a File in Linux | InMotion Hosting<\/title>\n<meta name=\"description\" content=\"Need to find a file in Linux? Find text in files? Whichever you need, we discuss how to find a file in Linux with terminal and graphical applications.\" \/>\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.inmotionhosting.com\/support\/server\/linux\/to-find-a-file-in-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"7 Easy Ways to Find a File in Linux | InMotion Hosting\" \/>\n<meta property=\"og:description\" content=\"Need to find a file in Linux? Find text in files? Whichever you need, we discuss how to find a file in Linux with terminal and graphical applications.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/server\/linux\/to-find-a-file-in-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-05-12T13:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-02-19T18:49:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/05\/canva-find-a-file-in-linux.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jesse Owens\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jesse Owens\" \/>\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:\/\/www.inmotionhosting.com\/support\/server\/linux\/to-find-a-file-in-linux\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/linux\/to-find-a-file-in-linux\/\"},\"author\":{\"name\":\"Jesse Owens\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/db97af6358b0c1726e01e49180e5f71c\"},\"headline\":\"5 Ways to Find a File in Linux\",\"datePublished\":\"2021-05-12T13:00:00+00:00\",\"dateModified\":\"2025-02-19T18:49:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/linux\/to-find-a-file-in-linux\/\"},\"wordCount\":821,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/linux\/to-find-a-file-in-linux\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/05\/canva-find-a-file-in-linux-1024x538.jpg\",\"articleSection\":[\"Linux\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/server\/linux\/to-find-a-file-in-linux\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/linux\/to-find-a-file-in-linux\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/server\/linux\/to-find-a-file-in-linux\/\",\"name\":\"7 Easy Ways to Find a File in Linux | InMotion Hosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/linux\/to-find-a-file-in-linux\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/linux\/to-find-a-file-in-linux\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/05\/canva-find-a-file-in-linux-1024x538.jpg\",\"datePublished\":\"2021-05-12T13:00:00+00:00\",\"dateModified\":\"2025-02-19T18:49:49+00:00\",\"description\":\"Need to find a file in Linux? Find text in files? Whichever you need, we discuss how to find a file in Linux with terminal and graphical applications.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/linux\/to-find-a-file-in-linux\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/server\/linux\/to-find-a-file-in-linux\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/linux\/to-find-a-file-in-linux\/#primaryimage\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/05\/canva-find-a-file-in-linux.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/05\/canva-find-a-file-in-linux.jpg\",\"width\":1200,\"height\":630,\"caption\":\"How to Find a File in Linux (7 Methods)\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/linux\/to-find-a-file-in-linux\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"5 Ways to Find a File in Linux\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/db97af6358b0c1726e01e49180e5f71c\",\"name\":\"Jesse Owens\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/jesseo\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"7 Easy Ways to Find a File in Linux | InMotion Hosting","description":"Need to find a file in Linux? Find text in files? Whichever you need, we discuss how to find a file in Linux with terminal and graphical applications.","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.inmotionhosting.com\/support\/server\/linux\/to-find-a-file-in-linux\/","og_locale":"en_US","og_type":"article","og_title":"7 Easy Ways to Find a File in Linux | InMotion Hosting","og_description":"Need to find a file in Linux? Find text in files? Whichever you need, we discuss how to find a file in Linux with terminal and graphical applications.","og_url":"https:\/\/www.inmotionhosting.com\/support\/server\/linux\/to-find-a-file-in-linux\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2021-05-12T13:00:00+00:00","article_modified_time":"2025-02-19T18:49:49+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/05\/canva-find-a-file-in-linux.jpg","type":"image\/jpeg"}],"author":"Jesse Owens","twitter_card":"summary_large_image","twitter_creator":"@InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"Jesse Owens","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/server\/linux\/to-find-a-file-in-linux\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/server\/linux\/to-find-a-file-in-linux\/"},"author":{"name":"Jesse Owens","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/db97af6358b0c1726e01e49180e5f71c"},"headline":"5 Ways to Find a File in Linux","datePublished":"2021-05-12T13:00:00+00:00","dateModified":"2025-02-19T18:49:49+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/server\/linux\/to-find-a-file-in-linux\/"},"wordCount":821,"commentCount":0,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/server\/linux\/to-find-a-file-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/05\/canva-find-a-file-in-linux-1024x538.jpg","articleSection":["Linux"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/server\/linux\/to-find-a-file-in-linux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/server\/linux\/to-find-a-file-in-linux\/","url":"https:\/\/www.inmotionhosting.com\/support\/server\/linux\/to-find-a-file-in-linux\/","name":"7 Easy Ways to Find a File in Linux | InMotion Hosting","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/server\/linux\/to-find-a-file-in-linux\/#primaryimage"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/server\/linux\/to-find-a-file-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/05\/canva-find-a-file-in-linux-1024x538.jpg","datePublished":"2021-05-12T13:00:00+00:00","dateModified":"2025-02-19T18:49:49+00:00","description":"Need to find a file in Linux? Find text in files? Whichever you need, we discuss how to find a file in Linux with terminal and graphical applications.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/server\/linux\/to-find-a-file-in-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/server\/linux\/to-find-a-file-in-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/server\/linux\/to-find-a-file-in-linux\/#primaryimage","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/05\/canva-find-a-file-in-linux.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/05\/canva-find-a-file-in-linux.jpg","width":1200,"height":630,"caption":"How to Find a File in Linux (7 Methods)"},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/server\/linux\/to-find-a-file-in-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"5 Ways to Find a File in Linux"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/db97af6358b0c1726e01e49180e5f71c","name":"Jesse Owens","url":"https:\/\/www.inmotionhosting.com\/support\/author\/jesseo\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":{"id":4308,"name":"Linux","slug":"linux","link":"https:\/\/www.inmotionhosting.com\/support\/server\/linux\/"},"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/72652","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/57020"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=72652"}],"version-history":[{"count":9,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/72652\/revisions"}],"predecessor-version":[{"id":129400,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/72652\/revisions\/129400"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=72652"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=72652"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=72652"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}