{"id":9488,"date":"2005-09-23T23:00:31","date_gmt":"2005-09-23T20:00:31","guid":{"rendered":"https:\/\/mamchenkov.net\/wordpress\/?p=9488"},"modified":"2005-10-03T08:59:42","modified_gmt":"2005-10-03T05:59:42","slug":"finding-files-in-linux","status":"publish","type":"post","link":"https:\/\/mamchenkov.net\/wordpress\/2005\/09\/23\/finding-files-in-linux\/","title":{"rendered":"Finding files in Linux"},"content":{"rendered":"<!-- google_ad_section_start -->\n<p>Many beginning Linux users experience difficulties getting used to the filesystem structure.  Indeed, there are many files and directories, the structure of which are not as obvious as it could be.  Choosing an appropriate location for a new file or directory is difficult and many choose to follow their own instincts.<\/p>\n<p>With more experience, the file hierarchy becomes clearer and old concepts of placing files and directories start to fade out.  When it happens, finding things becomes difficult.  It is than that users learn that Linux has many tools for finding things.  And it is than that they become confused once again.<\/p>\n<p>Read on for a quick introduction into searching tools available in Linux.<\/p>\n<p><!--more--><\/p>\n<p><strong>find<\/strong><\/p>\n<p><code>find<\/code> is a very powerful tool to search through filesystem hierarchy.  It goes from directory to directory and from file to file.  It finds only stuff that is physically present on the hard disk.  <code>find<\/code> accepts a multitude of parameters.  It can search for files and directories by name, path, mount point, inode number,  owner, permissions, creation or modification timestamp,  etc.  It can perform a number of actions on the results &#8211; print them out, delete them, or pass them as parameters to external scripts.<\/p>\n<p><code>find<\/code> is one of those tools that you learn and than can&#8217;t imagine your life without.  Read the manual page (<code>man 1 find<\/code>) and than refresh your memory once in a while.<\/p>\n<p>Example of usage:<\/p>\n<pre>\r\n# Find in the current directory (recursively)\r\n# all files named core.\r\n[me@here dir]$ find . -name core\r\n<\/pre>\n<p><strong>locate<\/strong><\/p>\n<p>Once you start using <code>find<\/code>, you&#8217;ll notice that searching through a large directory or even a whole hard drive takes a long time.  You&#8217;ll get bored and tired of waiting and will be wondering if there is any other, &#8211; faster &#8211; way.  It is than that you will be glad to learn about <code>locate<\/code>.<\/p>\n<p><code>locate<\/code> builds an index of all files and directories on the system and uses it to find things much faster than <code>find<\/code>.  This index is refreshed periodically (anywhere from 1 day to 1 month &#8211; check your <code>cron<\/code> setup for specifics of your system).<\/p>\n<p>While you would certainly appreciate the speed with which <code>locate<\/code> finds files and directories, I should warn that it can get pretty frastrating sometimes.  You know that the file or directory is there, you are certain even, and you can list it with <code>ls<\/code>, but <code>locate<\/code> doesn&#8217;t find it.  What&#8217;s wrong?  Well, it can mean only one of two things.  Either the file or directory that you are looking for is new, and was created after the last update to <code>locate<\/code> index and thus cannot be found.  Or this directory is outside of those paths indexed by <code>locate<\/code>.  Usually temporary and spool directories are not index as they are meant to hold short-lived items.  Check the <code>locate<\/code> configuration file (usually <code>\/etc\/updatedb.conf<\/code>) for specifics of your system.<\/p>\n<p>Example of usage:<\/p>\n<pre>\r\n# Find all files and directories on the \r\n# system that have exim in their name.\r\n[me@here dir]$ locate exim\r\n<\/pre>\n<p><strong>whereis<\/strong><\/p>\n<p><code>whereis<\/code> looks for &#8220;tasty&#8221; stuff in the places where &#8220;tasty&#8221; stuff is usually stored.  By &#8220;tasty&#8221; I mean program binaries, sources, and manuals.  If you&#8217;ve used Linux even for a little while, you know that programs&#8217; executables are usually stored in <code>\/bin<\/code>, <code>\/sbin<\/code>, <code>\/usr\/bin<\/code>, <code>\/usr\/local\/bin<\/code>, and other similar directories.  There are similar places for sources (<code>\/usr\/include<\/code>) and manuals (<code>\/usr\/man\/<\/code>).<\/p>\n<p><code>whereis<\/code> just doesn&#8217;t forget about different locations and thus is a bit more efficient at findings interesting stuff than going through many places manually.<\/p>\n<p>Example of usage:<\/p>\n<pre>\r\n# Find binaries, sources,\r\n# and manuals for ls \r\n[me@here dir]$ where ls\r\n<\/pre>\n<p><strong>which<\/strong><\/p>\n<p><code>which<\/code> is one of those little simple programs that can save a lot of confusion.  <code>which<\/code> tells you the full path of the program that you want to execute.  For example, I can have a system-wide <code>\/bin\/ls<\/code> and my own modified version in <code>\/home\/leonid\/bin\/ls<\/code>.  If I use just <code>ls<\/code> on the command line, than I am not sure which copy of the program the shell is executing.  I can run <code>which ls<\/code> to make sure that the proper one will be started.<\/p>\n<p><code>which<\/code> works in a very simple manner.  It looks for the program you asked in directories listed in your path (<code>PATH<\/code> environment variable) and outputs the full path to the first match.  It uses exactly the same algorithm as shell itself uses.<\/p>\n<p>If you are trying to start some program and get a different version of it or a totally other program instead, use <code>which<\/code> to make sure that you are running the proper copy.  Also, you can use <code>which<\/code> to see if the program is in your <code>PATH<\/code>.  If it says it&#8217;s not, than shell won&#8217;t find it either.<\/p>\n<p>Example of usage:<\/p>\n<pre>\r\n# Find out which copy of ls\r\n# will start by shell if no full\r\n# path used\r\n[me@here dir]$ which ls\r\n<\/pre>\n<p><strong>rpm<\/strong> (or any other package manager for that matter)<\/p>\n<p>RPM is a package manager.  It is used to install, update and remove applications on your computer.  RPM maintains its own database.  RPM packages store information regarding what are they installing and where.  When the package is installed, this information is added to the RPM database.  When the package is removed, the information is also deleted from the database.<\/p>\n<p><code>rpm<\/code> tool can be used to query RPM database for directory and file locations.  Note that it does know what was actually installed by the package, but rather only what the package told it it would install.<\/p>\n<p>Example of usage:<\/p>\n<pre>\r\n# Find which binaries and\r\n# in which directories exim\r\n# package installed\r\n[me@here dir]$ rpm -ql exim | grep bin\r\n<\/pre>\n<!-- google_ad_section_end -->\n","protected":false},"excerpt":{"rendered":"<!-- google_ad_section_start -->\n<p>Many beginning Linux users experience difficulties getting used to the filesystem structure. Indeed, there are many files and directories, the structure of which are not as obvious as it could be. Choosing an appropriate location for a new file or directory is difficult and many choose to follow their own instincts. With more experience, the &hellip; <a href=\"https:\/\/mamchenkov.net\/wordpress\/2005\/09\/23\/finding-files-in-linux\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Finding files in Linux<\/span><\/a><\/p>\n<!-- google_ad_section_end -->\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false,"_links_to":"","_links_to_target":""},"categories":[1,6,18],"tags":[1960,616,699,1531,698,80],"keyring_services":[],"class_list":["post-9488","post","type-post","status-publish","format-standard","hentry","category-general","category-linux","category-programming","tag-command-line","tag-filesystem","tag-gnu","tag-operating-systems","tag-rpm","tag-tutorials"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.9 - aioseo.com -->\n\t<meta name=\"description\" content=\"Many beginning Linux users experience difficulties getting used to the filesystem structure. Indeed, there are many files and directories, the structure of which are not as obvious as it could be. Choosing an appropriate location for a new file or directory is difficult and many choose to follow their own instincts. With more experience, the\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Leonid Mamchenkov\"\/>\n\t<meta name=\"google-site-verification\" content=\"VHvdD0_usx1_4DzKy_QCVcICVgX2EgA2ybELT-wl7kQ\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/mamchenkov.net\/wordpress\/2005\/09\/23\/finding-files-in-linux\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.9\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Leonid Mamchenkov - Life, universe, and everything else\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Finding files in Linux - Leonid Mamchenkov\" \/>\n\t\t<meta property=\"og:description\" content=\"Many beginning Linux users experience difficulties getting used to the filesystem structure. Indeed, there are many files and directories, the structure of which are not as obvious as it could be. Choosing an appropriate location for a new file or directory is difficult and many choose to follow their own instincts. With more experience, the\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/mamchenkov.net\/wordpress\/2005\/09\/23\/finding-files-in-linux\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2026\/03\/leonid-sailing-beer.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2026\/03\/leonid-sailing-beer.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t\t<meta property=\"og:image:height\" content=\"1024\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2005-09-23T20:00:31+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2005-10-03T05:59:42+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/MamchenkovBlog\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@mamchenkov\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Finding files in Linux - Leonid Mamchenkov\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Many beginning Linux users experience difficulties getting used to the filesystem structure. Indeed, there are many files and directories, the structure of which are not as obvious as it could be. Choosing an appropriate location for a new file or directory is difficult and many choose to follow their own instincts. With more experience, the\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@mamchenkov\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2026\/03\/leonid-sailing-beer.jpg\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/2005\\\/09\\\/23\\\/finding-files-in-linux\\\/#blogposting\",\"name\":\"Finding files in Linux - Leonid Mamchenkov\",\"headline\":\"Finding files in Linux\",\"author\":{\"@id\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/author\\\/leonid\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/2005\\\/09\\\/23\\\/finding-files-in-linux\\\/#articleImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3cf6df002a284d78fb6e9d8222ca4d102e0832035ed6bc8447008bd234e131a4?s=96&d=identicon&r=g\",\"width\":96,\"height\":96,\"caption\":\"Leonid Mamchenkov\"},\"datePublished\":\"2005-09-23T23:00:31+02:00\",\"dateModified\":\"2005-10-03T08:59:42+02:00\",\"inLanguage\":\"en-US\",\"commentCount\":1,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/2005\\\/09\\\/23\\\/finding-files-in-linux\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/2005\\\/09\\\/23\\\/finding-files-in-linux\\\/#webpage\"},\"articleSection\":\"All, Linux, Programming, command line, filesystem, GNU, operating systems, rpm, tutorials\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/2005\\\/09\\\/23\\\/finding-files-in-linux\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/category\\\/technology\\\/#listItem\",\"name\":\"Technology\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/category\\\/technology\\\/#listItem\",\"position\":2,\"name\":\"Technology\",\"item\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/category\\\/technology\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/category\\\/technology\\\/linux\\\/#listItem\",\"name\":\"Linux\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/category\\\/technology\\\/linux\\\/#listItem\",\"position\":3,\"name\":\"Linux\",\"item\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/category\\\/technology\\\/linux\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/2005\\\/09\\\/23\\\/finding-files-in-linux\\\/#listItem\",\"name\":\"Finding files in Linux\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/category\\\/technology\\\/#listItem\",\"name\":\"Technology\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/2005\\\/09\\\/23\\\/finding-files-in-linux\\\/#listItem\",\"position\":4,\"name\":\"Finding files in Linux\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/category\\\/technology\\\/linux\\\/#listItem\",\"name\":\"Linux\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/#person\",\"name\":\"Leonid Mamchenkov\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/2005\\\/09\\\/23\\\/finding-files-in-linux\\\/#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3cf6df002a284d78fb6e9d8222ca4d102e0832035ed6bc8447008bd234e131a4?s=96&d=identicon&r=g\",\"width\":96,\"height\":96,\"caption\":\"Leonid Mamchenkov\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/author\\\/leonid\\\/#author\",\"url\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/author\\\/leonid\\\/\",\"name\":\"Leonid Mamchenkov\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/2005\\\/09\\\/23\\\/finding-files-in-linux\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3cf6df002a284d78fb6e9d8222ca4d102e0832035ed6bc8447008bd234e131a4?s=96&d=identicon&r=g\",\"width\":96,\"height\":96,\"caption\":\"Leonid Mamchenkov\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/2005\\\/09\\\/23\\\/finding-files-in-linux\\\/#webpage\",\"url\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/2005\\\/09\\\/23\\\/finding-files-in-linux\\\/\",\"name\":\"Finding files in Linux - Leonid Mamchenkov\",\"description\":\"Many beginning Linux users experience difficulties getting used to the filesystem structure. Indeed, there are many files and directories, the structure of which are not as obvious as it could be. Choosing an appropriate location for a new file or directory is difficult and many choose to follow their own instincts. With more experience, the\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/2005\\\/09\\\/23\\\/finding-files-in-linux\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/author\\\/leonid\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/author\\\/leonid\\\/#author\"},\"datePublished\":\"2005-09-23T23:00:31+02:00\",\"dateModified\":\"2005-10-03T08:59:42+02:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/#website\",\"url\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/\",\"name\":\"Blog of Leonid Mamchenkov\",\"description\":\"Life, universe, and everything else\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/mamchenkov.net\\\/wordpress\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Finding files in Linux - Leonid Mamchenkov","description":"Many beginning Linux users experience difficulties getting used to the filesystem structure. Indeed, there are many files and directories, the structure of which are not as obvious as it could be. Choosing an appropriate location for a new file or directory is difficult and many choose to follow their own instincts. With more experience, the","canonical_url":"https:\/\/mamchenkov.net\/wordpress\/2005\/09\/23\/finding-files-in-linux\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"google-site-verification":"VHvdD0_usx1_4DzKy_QCVcICVgX2EgA2ybELT-wl7kQ","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/mamchenkov.net\/wordpress\/2005\/09\/23\/finding-files-in-linux\/#blogposting","name":"Finding files in Linux - Leonid Mamchenkov","headline":"Finding files in Linux","author":{"@id":"https:\/\/mamchenkov.net\/wordpress\/author\/leonid\/#author"},"publisher":{"@id":"https:\/\/mamchenkov.net\/wordpress\/#person"},"image":{"@type":"ImageObject","@id":"https:\/\/mamchenkov.net\/wordpress\/2005\/09\/23\/finding-files-in-linux\/#articleImage","url":"https:\/\/secure.gravatar.com\/avatar\/3cf6df002a284d78fb6e9d8222ca4d102e0832035ed6bc8447008bd234e131a4?s=96&d=identicon&r=g","width":96,"height":96,"caption":"Leonid Mamchenkov"},"datePublished":"2005-09-23T23:00:31+02:00","dateModified":"2005-10-03T08:59:42+02:00","inLanguage":"en-US","commentCount":1,"mainEntityOfPage":{"@id":"https:\/\/mamchenkov.net\/wordpress\/2005\/09\/23\/finding-files-in-linux\/#webpage"},"isPartOf":{"@id":"https:\/\/mamchenkov.net\/wordpress\/2005\/09\/23\/finding-files-in-linux\/#webpage"},"articleSection":"All, Linux, Programming, command line, filesystem, GNU, operating systems, rpm, tutorials"},{"@type":"BreadcrumbList","@id":"https:\/\/mamchenkov.net\/wordpress\/2005\/09\/23\/finding-files-in-linux\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/mamchenkov.net\/wordpress#listItem","position":1,"name":"Home","item":"https:\/\/mamchenkov.net\/wordpress","nextItem":{"@type":"ListItem","@id":"https:\/\/mamchenkov.net\/wordpress\/category\/technology\/#listItem","name":"Technology"}},{"@type":"ListItem","@id":"https:\/\/mamchenkov.net\/wordpress\/category\/technology\/#listItem","position":2,"name":"Technology","item":"https:\/\/mamchenkov.net\/wordpress\/category\/technology\/","nextItem":{"@type":"ListItem","@id":"https:\/\/mamchenkov.net\/wordpress\/category\/technology\/linux\/#listItem","name":"Linux"},"previousItem":{"@type":"ListItem","@id":"https:\/\/mamchenkov.net\/wordpress#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/mamchenkov.net\/wordpress\/category\/technology\/linux\/#listItem","position":3,"name":"Linux","item":"https:\/\/mamchenkov.net\/wordpress\/category\/technology\/linux\/","nextItem":{"@type":"ListItem","@id":"https:\/\/mamchenkov.net\/wordpress\/2005\/09\/23\/finding-files-in-linux\/#listItem","name":"Finding files in Linux"},"previousItem":{"@type":"ListItem","@id":"https:\/\/mamchenkov.net\/wordpress\/category\/technology\/#listItem","name":"Technology"}},{"@type":"ListItem","@id":"https:\/\/mamchenkov.net\/wordpress\/2005\/09\/23\/finding-files-in-linux\/#listItem","position":4,"name":"Finding files in Linux","previousItem":{"@type":"ListItem","@id":"https:\/\/mamchenkov.net\/wordpress\/category\/technology\/linux\/#listItem","name":"Linux"}}]},{"@type":"Person","@id":"https:\/\/mamchenkov.net\/wordpress\/#person","name":"Leonid Mamchenkov","image":{"@type":"ImageObject","@id":"https:\/\/mamchenkov.net\/wordpress\/2005\/09\/23\/finding-files-in-linux\/#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/3cf6df002a284d78fb6e9d8222ca4d102e0832035ed6bc8447008bd234e131a4?s=96&d=identicon&r=g","width":96,"height":96,"caption":"Leonid Mamchenkov"}},{"@type":"Person","@id":"https:\/\/mamchenkov.net\/wordpress\/author\/leonid\/#author","url":"https:\/\/mamchenkov.net\/wordpress\/author\/leonid\/","name":"Leonid Mamchenkov","image":{"@type":"ImageObject","@id":"https:\/\/mamchenkov.net\/wordpress\/2005\/09\/23\/finding-files-in-linux\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/3cf6df002a284d78fb6e9d8222ca4d102e0832035ed6bc8447008bd234e131a4?s=96&d=identicon&r=g","width":96,"height":96,"caption":"Leonid Mamchenkov"}},{"@type":"WebPage","@id":"https:\/\/mamchenkov.net\/wordpress\/2005\/09\/23\/finding-files-in-linux\/#webpage","url":"https:\/\/mamchenkov.net\/wordpress\/2005\/09\/23\/finding-files-in-linux\/","name":"Finding files in Linux - Leonid Mamchenkov","description":"Many beginning Linux users experience difficulties getting used to the filesystem structure. Indeed, there are many files and directories, the structure of which are not as obvious as it could be. Choosing an appropriate location for a new file or directory is difficult and many choose to follow their own instincts. With more experience, the","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/mamchenkov.net\/wordpress\/#website"},"breadcrumb":{"@id":"https:\/\/mamchenkov.net\/wordpress\/2005\/09\/23\/finding-files-in-linux\/#breadcrumblist"},"author":{"@id":"https:\/\/mamchenkov.net\/wordpress\/author\/leonid\/#author"},"creator":{"@id":"https:\/\/mamchenkov.net\/wordpress\/author\/leonid\/#author"},"datePublished":"2005-09-23T23:00:31+02:00","dateModified":"2005-10-03T08:59:42+02:00"},{"@type":"WebSite","@id":"https:\/\/mamchenkov.net\/wordpress\/#website","url":"https:\/\/mamchenkov.net\/wordpress\/","name":"Blog of Leonid Mamchenkov","description":"Life, universe, and everything else","inLanguage":"en-US","publisher":{"@id":"https:\/\/mamchenkov.net\/wordpress\/#person"}}]},"og:locale":"en_US","og:site_name":"Leonid Mamchenkov - Life, universe, and everything else","og:type":"article","og:title":"Finding files in Linux - Leonid Mamchenkov","og:description":"Many beginning Linux users experience difficulties getting used to the filesystem structure. Indeed, there are many files and directories, the structure of which are not as obvious as it could be. Choosing an appropriate location for a new file or directory is difficult and many choose to follow their own instincts. With more experience, the","og:url":"https:\/\/mamchenkov.net\/wordpress\/2005\/09\/23\/finding-files-in-linux\/","og:image":"https:\/\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2026\/03\/leonid-sailing-beer.jpg","og:image:secure_url":"https:\/\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2026\/03\/leonid-sailing-beer.jpg","og:image:width":1024,"og:image:height":1024,"article:published_time":"2005-09-23T20:00:31+00:00","article:modified_time":"2005-10-03T05:59:42+00:00","article:publisher":"https:\/\/www.facebook.com\/MamchenkovBlog","twitter:card":"summary_large_image","twitter:site":"@mamchenkov","twitter:title":"Finding files in Linux - Leonid Mamchenkov","twitter:description":"Many beginning Linux users experience difficulties getting used to the filesystem structure. Indeed, there are many files and directories, the structure of which are not as obvious as it could be. Choosing an appropriate location for a new file or directory is difficult and many choose to follow their own instincts. With more experience, the","twitter:creator":"@mamchenkov","twitter:image":"https:\/\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2026\/03\/leonid-sailing-beer.jpg"},"aioseo_meta_data":{"post_id":"9488","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2023-07-19 18:31:40","updated":"2026-01-15 00:49:46","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/mamchenkov.net\/wordpress\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/mamchenkov.net\/wordpress\/category\/technology\/\" title=\"Technology\">Technology<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/mamchenkov.net\/wordpress\/category\/technology\/linux\/\" title=\"Linux\">Linux<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tFinding files in Linux\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/mamchenkov.net\/wordpress"},{"label":"Technology","link":"https:\/\/mamchenkov.net\/wordpress\/category\/technology\/"},{"label":"Linux","link":"https:\/\/mamchenkov.net\/wordpress\/category\/technology\/linux\/"},{"label":"Finding files in Linux","link":"https:\/\/mamchenkov.net\/wordpress\/2005\/09\/23\/finding-files-in-linux\/"}],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":9671,"url":"https:\/\/mamchenkov.net\/wordpress\/2005\/11\/15\/daily-del-icio-us-bookmarks\/","url_meta":{"origin":9488,"position":0},"title":"Daily del.icio.us bookmarks","author":"Leonid Mamchenkov","date":"November 15, 2005","format":false,"excerpt":"Shared bookmarks for del.icio.us user tvset on 2005-11-14 Light Field Photography with a Hand-Held Plenoptic Camera Tagged as: cool photography physics research science technology wow Trying to make sense of all the X modular packages Tagged as: desktop linux lists modules reference xorg Unison File Synchronizer -- Excellent tool to\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":14521,"url":"https:\/\/mamchenkov.net\/wordpress\/2011\/03\/09\/chmod-text-modes\/","url_meta":{"origin":9488,"position":1},"title":"chmod text modes","author":"Leonid Mamchenkov","date":"March 9, 2011","format":false,"excerpt":"I came across this blog post which praises text modes for \/bin\/chmod. There are two ways you can change file permissions in Unix - one is using\u00a0chmod's symbolic (text) modes (like\u00a0chmod ug+x file), the other is using the octal modes (like\u00a0chmod 0660 file). It turns out that symbolic modes are\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":42825,"url":"https:\/\/mamchenkov.net\/wordpress\/2019\/07\/16\/interpretation-of-ntfs-timestamps\/","url_meta":{"origin":9488,"position":2},"title":"Interpretation of NTFS Timestamps","author":"Leonid Mamchenkov","date":"July 16, 2019","format":false,"excerpt":"\"Interpretation of NTFS Timestamps\" is a fascinating technical dive into the NTFS filesystem and the way it stores file and directory timestamps. Let me just leave you with this quote: NTFS file timestamps, according to the documentation of the \u2018FILETIME\u2019 data structure in the Windows Software Development Toolkit, is a\u00a0\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":42630,"url":"https:\/\/mamchenkov.net\/wordpress\/2019\/05\/19\/40x-speed-up-of-ls-on-large-dirs\/","url_meta":{"origin":9488,"position":3},"title":"40x speed up of ls on large dirs","author":"Leonid Mamchenkov","date":"May 19, 2019","format":false,"excerpt":"If you ever tried listing a directory with a lot (10,000+) of files in it, I'm sure you know how annoyingly slow 'ls' can be. Turns out there is a simple way to make it better. Have a look at the \"When setting an environment variable gives you a 40x\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":25080,"url":"https:\/\/mamchenkov.net\/wordpress\/2015\/12\/26\/files-are-hard\/","url_meta":{"origin":9488,"position":4},"title":"Files Are Hard","author":"Leonid Mamchenkov","date":"December 26, 2015","format":false,"excerpt":"\"Files Are Hard\" is one of those articles that show how complex even the simplest of things are. \u00a0How complex is writing to a file? \u00a0Well, quite. \u00a0Especially if you want to make sure there's no corruption in case of a crash. \u00a0It goes both over the theory and practice,\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"fs_properties","src":"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2015\/12\/fs_properties-500x253.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":9615,"url":"https:\/\/mamchenkov.net\/wordpress\/2005\/10\/27\/daily-del-icio-us-bookmarks\/","url_meta":{"origin":9488,"position":5},"title":"Daily del.icio.us bookmarks","author":"Leonid Mamchenkov","date":"October 27, 2005","format":false,"excerpt":"Shared bookmarks for del.icio.us user tvset on 2005-10-26 GSig -- Graphical signature for Gmail users Tagged as: email gmail google html images logo mail signature tools Inverse Symbolic Calculator Tagged as: calculator calculus math mathematics science tools File Systems -- Good review of available file systems Tagged as: filesystem linux\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/9488","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/comments?post=9488"}],"version-history":[{"count":0,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/9488\/revisions"}],"wp:attachment":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/media?parent=9488"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/categories?post=9488"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/tags?post=9488"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/keyring_services?post=9488"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}