{"id":393,"date":"2019-03-07T09:31:33","date_gmt":"2019-03-07T09:31:33","guid":{"rendered":"https:\/\/jan.schnasse.org\/blog\/?p=393"},"modified":"2026-09-28T11:39:16","modified_gmt":"2026-09-28T09:39:16","slug":"unix-tools-introduced-today-fhs","status":"publish","type":"post","link":"https:\/\/jan.schnasse.org\/blog\/2019\/03\/07\/unix-tools-introduced-today-fhs\/","title":{"rendered":"Unix tools introduced. Today: FHS"},"content":{"rendered":"<p>The <a href=\"http:\/\/refspecs.linuxfoundation.org\/FHS_3.0\/fhs\/index.html\">Filesystem Hierarchy Standard<\/a> (FHS) defines a standard layout to organize various kinds of application and OS related data in a predictable and common way [<a href=\"http:\/\/refspecs.linuxfoundation.org\/FHS_3.0\/fhs\/ch01.html\">1<\/a>].<\/p>\n<p>A basic knowledge of the FHS will help you to find application or OS related data more easily. If you are a developer, it also provides a good orientation for organizing your own applications in a maintainable way, e.g. as <a href=\"http:\/\/packaging.ubuntu.com\/html\/packaging-new-software.html\">ubuntu package<\/a>.<\/p>\n<p><a href=\"http:\/\/refspecs.linuxfoundation.org\/FHS_3.0\/fhs\/ch03s04.html\">\/bin<\/a> &#8211; essential user commands<\/p>\n<p><a href=\"http:\/\/refspecs.linuxfoundation.org\/FHS_3.0\/fhs\/ch03s05.html\">\/boot<\/a> &#8211; OS boot loader<\/p>\n<p><a href=\"http:\/\/refspecs.linuxfoundation.org\/FHS_3.0\/fhs\/ch03s06.html\">\/dev<\/a> &#8211; devices (everything is a file principle)<\/p>\n<p><a href=\"http:\/\/refspecs.linuxfoundation.org\/FHS_3.0\/fhs\/ch03s07.html\">\/etc<\/a> &#8211; system configuration<\/p>\n<p><a href=\"http:\/\/refspecs.linuxfoundation.org\/FHS_3.0\/fhs\/ch03s08.html\">\/home<\/a> &#8211; user data<\/p>\n<p><a href=\"http:\/\/refspecs.linuxfoundation.org\/FHS_3.0\/fhs\/ch03s09.html\">\/lib<\/a> &#8211; essentail shared libraries<\/p>\n<p><a href=\"http:\/\/refspecs.linuxfoundation.org\/FHS_3.0\/fhs\/ch03s10.html\">\/media<\/a> &#8211; mount point for removable media<\/p>\n<p><a href=\"http:\/\/refspecs.linuxfoundation.org\/FHS_3.0\/fhs\/ch03s12.html\">\/mnt<\/a> &#8211; mount point for temporarily mounted filesystems<\/p>\n<p><a href=\"http:\/\/refspecs.linuxfoundation.org\/FHS_3.0\/fhs\/ch03s13.html\">\/opt<\/a> &#8211; add-on applications<\/p>\n<p><a href=\"http:\/\/refspecs.linuxfoundation.org\/FHS_3.0\/fhs\/ch03s14.html\">\/root<\/a> &#8211; home of root<\/p>\n<p><a href=\"http:\/\/refspecs.linuxfoundation.org\/FHS_3.0\/fhs\/ch03s15.html\">\/run<\/a> &#8211; run time variable data<\/p>\n<p><a href=\"http:\/\/refspecs.linuxfoundation.org\/FHS_3.0\/fhs\/ch03s16.html\">\/sbin<\/a> &#8211; system binaries<\/p>\n<p><a href=\"http:\/\/refspecs.linuxfoundation.org\/FHS_3.0\/fhs\/ch03s17.html\">\/srv<\/a> &#8211; data for services provided by the system<\/p>\n<p><a href=\"http:\/\/refspecs.linuxfoundation.org\/FHS_3.0\/fhs\/ch03s18.html\">\/tmp<\/a> &#8211; temporary data<\/p>\n<p>\/proc &#8211; is a virtual filesystem<\/p>\n<p><a href=\"http:\/\/refspecs.linuxfoundation.org\/FHS_3.0\/fhs\/ch04.html\">\/usr<\/a> &#8211; secondary hierarchy<\/p>\n<p style=\"padding-left: 30px;\">bin &#8211; Most user commands<br \/>\nlib &#8211; Libraries<br \/>\nlocal &#8211; Local hierarchy (empty after main installation)<br \/>\nsbin &#8211; Non-vital system binaries<br \/>\nshare &#8211; Architecture-independent data<\/p>\n<p><a href=\"http:\/\/refspecs.linuxfoundation.org\/FHS_3.0\/fhs\/ch05.html\">\/var<\/a> &#8211; variable data<\/p>\n<p style=\"padding-left: 30px;\">cache\u00a0 &#8211; Application cache data<br \/>\nlib\u00a0 &#8211; Variable state information<br \/>\nlocal\u00a0 &#8211; Variable data for \/usr\/local<br \/>\nlock &#8211;\u00a0 Lock files<br \/>\nlog &#8211; Log files and directories<br \/>\nopt &#8211; Variable data for \/opt<br \/>\nrun &#8211; Data relevant to running processes<br \/>\nspool &#8211; Application spool data<br \/>\ntmp\u00a0 -Temporary files preserved between system reboots<\/p>\n<h3>Find more<\/h3>\n<p><a href=\"https:\/\/www.debian.org\/doc\/debian-policy\/ch-opersys.html#system-run-levels-and-init-d-scripts\">What about &#8211; \/init.d ?<\/a><\/p>\n<p><a href=\"https:\/\/unix.stackexchange.com\/questions\/4029\/what-does-the-d-stand-for-in-directory-names\">What does the .d stand for in directory names?<\/a><\/p>\n<p><a href=\"https:\/\/www.debian.org\/doc\/debian-policy\/ch-opersys.html\">FHS in Debian<\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Filesystem Hierarchy Standard (FHS) defines a standard layout to organize various kinds of application and OS related data in a predictable and common way [1]. A basic knowledge of the FHS will help you to find application or OS related data more easily. If you are a developer, it also provides a good orientation [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,6,15,17],"tags":[],"class_list":["post-393","post","type-post","status-publish","format-standard","hentry","category-admin","category-development","category-software","category-unixtools"],"_links":{"self":[{"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/posts\/393","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/comments?post=393"}],"version-history":[{"count":1,"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/posts\/393\/revisions"}],"predecessor-version":[{"id":4379,"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/posts\/393\/revisions\/4379"}],"wp:attachment":[{"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/media?parent=393"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/categories?post=393"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/tags?post=393"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}