<divclass="box-info">The translation of this page isn't yet complete. Until it is, unfinished parts use the English original.</div>
<h1>Filesystem layout</h1>
<p>Haiku's filesystem layout is quite transparent, trying to always use non-cryptic names for files and folders, that don't leave the user guessing. Files and folders that are important for the system to function properly, are protected from accidental tempering by showing one of these alerts:</p>
<p>The second alert pops up if you try to rename or delete something in the system hierarchy. Here, the "<spanclass="button">Do it</span>" button will only become clickable when you're holding down the <spanclass="key">SHIFT</span> key.</p>
<p>Generally, there are three separate branches springing from the root folder of the boot volume:</p>
<aid="system"name="system">The system folder - <spanclass="path">/boot/system/</span></a></h2>
<p>Under Haiku's predecessor BeOS, this folder was named <spanclass="path">/boot/beos/</span>. You may still find it in some older documentation (e.g. in the original BeBook).<br/>
Whatever it's named, you should not alter what's inside. Every update of Haiku can add, remove or overwrite anything within it. If you want to add functionality, maybe with other Tracker Add-Ons or Translators or maybe another hardware driver, you install these things under your own <spanclass="path">/boot/home/</span> hierarchy or, if it's supposed to be for every user, under <spanclass="path">/boot/common/</span>. As long as Haiku isn't multi-user, this distinction has no apparent effect, as there's only one user with one <i>home</i> folder. But since there will be support for more users than one eventually, it makes sense to learn the right way from the start.</p>
<p>So, let's say you want to install a new Translator for the latest image format, you <b>don't</b> simply copy it into the respective system folder. Remember: Don't touch!<br/>
Instead, you put it into the mirrored hierarchy under <spanclass="path">/boot/common/</span> or <spanclass="path">/boot/home/config/</span>.</p>
<p>In our example the location for Translators in the system folder would be</p>
<p>This has another advantage: If the component you have installed messes things up (which is possible as you install hardware drivers like this, too) you are able to choose "<i>Disable user add-ons</i>" from the <ahref="bootloader.html">Boot Loader</a> menu and are thus always able to boot without the offending component.</p>
<p>Most of the time, however, you won't have to deal with these things at all, since every software that comes from a trusted source should include an installation routine that handles these things.<br/>
<!--
If you do want to know more about how things tick in Haiku, have a look at this layout chart of the system folder:
<aid="common"name="common">The common folder - <spanclass="path">/boot/common/</span></a></h2>
<p>Haiku is not a multi-user system yet. Once it is though, every user has her own <i>home</i> folder that is not accessible to anyone else. Every application or added component like Tracker Add-Ons, Translators etc. as well as any data that's supposed to be shared between different users, has to be put under <spanclass="path">/boot/common/</span>.</p>
<aid="home"name="home">The home folder - <spanclass="path">/boot/home/</span></a></h2>
<p>This folder belongs to you. Here you can create and delete files and folders as you wish. However, you shouldn't mess too much with the <spanclass="path">~/config/</span> directory and its subfolders. You <i>could</i> delete e.g. the <spanclass="path">~/config/settings/</span> folder without damaging the operating system itself, but who wants to lose all his configurations and application settings? In any case, the system warns you with the at the top mentioned alert.</p>
<p>Besides the <spanclass="path">~/config/add-ons/</span> folder, which mirrors the system's add-ons folder for additional components as described above, there are a few other folders of interest. (By the way, the tilde ("<tt>~</tt>") is a shortcut for your home folder, so you don't always have to write "<spanclass="path">/boot/home/</span>" in Terminal.)</p>
<td>Again from our BeOS legacy, the <spanclass="path">be</span> folder contains what's shown in the <ahref="deskbar.html#deskbar-menu">Deskbar menu</a>. You can add and remove items by putting files, folders, links or queries into this folder.</td></tr>
<td>This folder is the place for <ahref="bash-scripting.html#user-scripts">User Scripts</a> that are executed before or after the system boots up or shuts down.</td></tr>
<td>This folder contains the settings to all applications and a few configurations for the system. Some applications manage their settings in their own subfolders, others simply put their configuration file in there.</td></tr>
<td>In this <acronymtitle="Multipurpose Internet Mail Extensions">MIME</acronym> database Haiku keeps track of all the different <ahref="filetypes.html">filetypes</a> and their settings.</td></tr>
<td>There's one settings file that may be of interest: <spanclass="cli">kernel</span> offers some low level configurations like disabling <acronymtitle="Symmetric Multi Processing">SMP</acronym>, activating serial debugging or enabling advanced power management. You activate a configuration line by removing the commentary symbol "<tt>#</tt>". Be careful here!</td></tr>
<td>Besides the various settings files for Tracker, there are some interesting subfolders:</td></tr>
<tr><tdalign="right"><spanclass="path">DefaultFolderTemplate/</span></td><tdstyle="width:10px;"></td><td>Show and arrange all attributes and the window size to your liking. Every new folder you create will use it as a template.</td></tr>
<tr><tdalign="right"><spanclass="path">DefaultQueryTemplates/</span></td><td></td><td>You can define the layout of query result windows for certain filetypes. See topic <ahref="queries.html#result-window">Query: The result window</a>.</td></tr>
<tr><tdalign="right"><spanclass="path">Go/</span></td><td></td><td>Put links to your favorite locations in here to make them available e.g. in open and save panels. See topic <ahref="gui.html#favorites-recent">Haiku's GUI: Favorites and recent folders</a>.</td></tr>
<tr><tdalign="right"><spanclass="path">Tracker New Template/</span></td><td></td><td>Add a template for any filetype that's then available from Tracker's <spanclass="menu">File | New...</span> menu. See topic <ahref="tracker.html#working-with-files">Tracker: Working with files</a>.</td></tr>