2010-07-08 22:03:41 +04:00
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
< html xmlns = "http://www.w3.org/1999/xhtml" lang = "en-US" xml:lang = "en-US" >
< head >
<!--
*
2013-12-15 16:04:28 +04:00
* Copyright 2008-2013, Haiku. All rights reserved.
2010-07-08 22:03:41 +04:00
* Distributed under the terms of the MIT License.
*
* Authors:
* Humdinger < humdingerb @ gmail . com >
2010-08-02 20:51:09 +04:00
* Translators:
* Pengphei Han
2013-12-15 16:04:28 +04:00
* dill
2010-07-08 22:03:41 +04:00
*
-->
< meta http-equiv = "content-type" content = "text/html; charset=utf-8" / >
< meta http-equiv = "Content-Style-Type" content = "text/css" / >
< meta name = "robots" content = "all" / >
2010-08-02 20:51:09 +04:00
< title > 文件系统布局< / title >
2010-07-08 22:03:41 +04:00
< link rel = "stylesheet" type = "text/css" href = "../Haiku-doc.css" / >
< / head >
< body >
< div id = "banner" >
2010-08-02 20:51:09 +04:00
< div > < span > 用户指南< / span > < / div >
2010-07-08 22:03:41 +04:00
< / div >
< div class = "nav" >
< div class = "inner" >
< ul class = "lang-menu" >
< li class = "now" > < img src = "../images/flags/zh_CN.png" alt = "" / > 中文 [中文]< / li >
< li > < a href = "../fr/filesystem-layout.html" > < img src = "../images/flags/fr.png" alt = "" / > Français< / a > < / li >
< li > < a href = "../de/filesystem-layout.html" > < img src = "../images/flags/de.png" alt = "" / > Deutsch< / a > < / li >
< li > < a href = "../it/filesystem-layout.html" > < img src = "../images/flags/it.png" alt = "" / > Italiano< / a > < / li >
< li > < a href = "../ru/filesystem-layout.html" > < img src = "../images/flags/ru.png" alt = "" / > Русский< / a > < / li >
< li > < a href = "../es/filesystem-layout.html" > < img src = "../images/flags/es.png" alt = "" / > Español< / a > < / li >
2011-05-22 22:01:43 +04:00
< li > < a href = "../sv_SE/filesystem-layout.html" > < img src = "../images/flags/sv_SE.png" alt = "" / > Svenska< / a > < / li >
2010-07-08 22:03:41 +04:00
< li > < a href = "../jp/filesystem-layout.html" > < img src = "../images/flags/jp.png" alt = "" / > 日本語< / a > < / li >
< li > < a href = "../uk/filesystem-layout.html" > < img src = "../images/flags/uk.png" alt = "" / > Українська< / a > < / li >
< li > < a href = "../pt_PT/filesystem-layout.html" > < img src = "../images/flags/pt_PT.png" alt = "" / > Português< / a > < / li >
2011-12-04 00:12:53 +04:00
< li > < a href = "../fi/filesystem-layout.html" > < img src = "../images/flags/fi.png" alt = "" / > Suomi< / a > < / li >
< li > < a href = "../sk/filesystem-layout.html" > < img src = "../images/flags/sk.png" alt = "" / > Slovenčina< / a > < / li >
2012-11-16 01:36:54 +04:00
< li > < a href = "../hu/filesystem-layout.html" > < img src = "../images/flags/hu.png" alt = "" / > Magyar< / a > < / li >
< li > < a href = "../pt_BR/filesystem-layout.html" > < img src = "../images/flags/pt_BR.png" alt = "" / > Português (Brazil)< / a > < / li >
2013-02-18 00:51:59 +04:00
< li > < a href = "../ca/filesystem-layout.html" > < img src = "../images/flags/ca.png" alt = "" / > Català< / a > < / li >
2014-05-31 02:02:36 +04:00
< li > < a href = "../pl/filesystem-layout.html" > < img src = "../images/flags/pl.png" alt = "" / > Polski< / a > < / li >
2016-05-06 05:15:13 +03:00
< li > < a href = "../ro/filesystem-layout.html" > < img src = "../images/flags/ro.png" alt = "" / > Română< / a > < / li >
2010-07-08 22:03:41 +04:00
< li > < a href = "../en/filesystem-layout.html" > < img src = "../images/flags/gb.png" alt = "" / > English< / a > < / li >
< / ul >
< span >
2010-08-02 20:51:09 +04:00
« < a href = "bootloader.html" > 引导程序< / a >
:: < a href = "contents.html" class = "uplink" > 内容< / a >
:: < a href = "gui.html" > Haiku的图形用户界面< / a > »
2010-07-08 22:03:41 +04:00
< / span > < / div >
< / div >
< div id = "content" >
< div >
2013-12-15 16:04:28 +04:00
< div class = "box-info" > 本节的翻译还未完成。在未完成之前,所有的未完成部分都将使用英语原文。< / div >
2010-07-08 22:03:41 +04:00
2010-08-02 20:51:09 +04:00
< h1 > 文件系统布局< / h1 >
2010-07-08 22:03:41 +04:00
2013-12-15 16:04:28 +04:00
< p > Haiku 的文件系统布局是非常清晰,尽量使用简单的名字为文件和文件夹命名,让用户不会产生疑问。对于维持系统的正常运行非常重要的文件和文件夹是受到保护的,当它们发生意外的更改时,系统将会弹出以下警告:< / p >
2010-07-08 22:03:41 +04:00
< img src = "images/filesystem-layout-images/achtung-user.png" alt = "achtung-user.png" / >
< img src = "images/filesystem-layout-images/achtung-system.png" alt = "achtung-system.png" / >
2013-12-15 16:04:28 +04:00
< p > 如果您重命名或者删除了系统级别的内容,那么系统将会弹出第二类警告。在此菜单上,“< span class = "button" > Rename< / span > ” 按钮只有在您按下 < span class = "key" > SHIFT< / span > 键时才能够点击。< / p >
2014-05-31 02:02:36 +04:00
< p > 通常,在启动卷的根目录下有两个独立的分支文件夹:< / p >
2010-07-08 22:03:41 +04:00
< table summary = "layout" border = "0" cellspacing = "0" cellpadding = "2" >
2014-05-31 02:02:36 +04:00
< tr > < td > < span class = "path" > /boot/system/< / span > < / td > < td > < / td > < td > 包含所有用户共享的系统文件和应用程序/软件包。< / td > < / tr >
< tr > < td > < span class = "path" > /boot/home/< / span > < / td > < td > < / td > < td > 您的个人目录,用于保存个人数据和设置,以及 < i > 不< / i > 与其他用户共享的应用/软件包。< / td > < / tr >
2010-07-08 22:03:41 +04:00
< / table >
2014-05-31 02:02:36 +04:00
< p > 现在, Haiku 还不是多用户系统,共享和非共享应用程序和软件包之间并没有明显的界限和效果,因为目前仅有单个用户和单个 home 文件夹。但是因为最终我们会提供多用户支持,现在开始时对这个有一个正确的理解会很有意义。< / p >
2010-07-08 22:03:41 +04:00
< h2 >
< a href = "#" > < img src = "../images/up.png" style = "border:none;float:right" alt = "index" / > < / a >
2010-08-02 20:51:09 +04:00
< a id = "system" name = "system" > 系统文件夹 - < span class = "path" > /boot/system/< / span > < / a > < / h2 >
2014-05-31 02:02:36 +04:00
< p > 在原 BeOS 系统中,该文件夹命名为 < span class = "path" > /boot/beos/< / span > 。在一些老的文档中,您仍然可以找到它(例如 BeBook )。
< br / >
< span class = "path" > /boot/system/< / span > 目录中的多数文件夹是只读的,而且它们都非常重要,因为它们包含了 Haiku 正常运行所必须的文件,所以它们的更新必须非常安全。其中用户可写的文件如下:< / p >
2013-12-15 16:04:28 +04:00
< table summary = "layout" border = "0" cellspacing = "0" cellpadding = "2" >
2014-05-31 02:02:36 +04:00
< tr > < td > < span class = "path" > /boot/system/cache/< / span > < / td > < td > < / td > < td > 包含了缓存文件以及链接到 < span class = "path" > /tmp/< / span > 的临时目录。< / td > < / tr >
< tr > < td class = "onelinetop" > < span class = "path" > /boot/system/non-packaged/< / span > < / td > < td > < / td > < td > 包含了不属于 .hpkg 软件包(或者老的 BeOS 压缩档)的其他文件的文件系统结构。< / td > < / tr >
< tr > < td > < span class = "path" > /boot/system/packages/< / span > < / td > < td > < / td > < td > 除了保存 Haiku 的系统软件包之外,您也可以添加/删除所有用户共享的软件包。< / td > < / tr >
< tr > < td > < span class = "path" > /boot/system/settings/< / span > < / td > < td > < / td > < td > 包含系统级别的设置。< / td > < / tr >
< tr > < td > < span class = "path" > /boot/system/var/< / span > < / td > < td > < / td > < td > 包含日志文件,例如 syslog( 在出错时非常重要) , 并且是 swap 文件的默认位置,< / td > < / tr >
2010-07-08 22:03:41 +04:00
< / table >
2016-05-06 05:15:13 +03:00
< p > < span class = "box-info" > For more information on the < span class = "path" > packages< / span > and < span class = "path" > non-packaged< / span > folders, see topic < a href = "applications.html" > Applications< / a > .< / span > < / p >
2010-07-08 22:03:41 +04:00
< h2 >
< a href = "#" > < img src = "../images/up.png" style = "border:none;float:right" alt = "index" / > < / a >
2015-01-17 20:26:33 +03:00
< a id = "home" name = "home" > home 文件夹 - < span class = "path" > /boot/home/< / span > < / a > < / h2 >
< p > 该目录属于您个人目录。您可以根据需要创建和删除其中的文件和目录。(顺便说一句,"< tt > -< / tt > "符号是主目录的快捷方式,因此不需要每次都在终端中输入"< span class = "path" > /boot/home< / span > "。)< br / >
在将来的多用户环境中,那些您希望和其他用户共享的文件需要纺织在 "< span class = "path" > /boot/home< / span > " 目录之外。例如,可以创建 < span class = "path" > /home/all-users< / span > 目录,并放置那些文件。
< / p >
2013-12-15 16:04:28 +04:00
2010-07-08 22:03:41 +04:00
< table summary = "layout" border = "0" cellspacing = "0" cellpadding = "4" >
2013-12-15 16:04:28 +04:00
< tr > < td > < span class = "path" > ~/Desktop/< / span > < / td > < td style = "width:10px;" > < / td >
2016-05-06 05:15:13 +03:00
< td > 保存您桌面上的文件。双击将不会打开该目录,因为其总是可见的。当您的文件通过打开窗口出现时,将会快速的切换到另一个 < a href = "workspaces.html" > 工作区< / a > 。当然,通过右键点击,然后 < a href = "tracker.html#drill-down" > 拖动< / a > 也可以实现。< / td > < / tr >
2013-12-15 16:04:28 +04:00
< tr > < td > < span class = "path" > ~/mail/< / span > < / td > < td style = "width:10px;" > < / td >
2014-05-31 02:02:36 +04:00
< td > 您的邮件默认保存位置。< / td > < / tr >
2013-12-15 16:04:28 +04:00
< tr > < td > < span class = "path" > ~/people/< / span > < / td > < td style = "width:10px;" > < / td >
2014-05-31 02:02:36 +04:00
< td > 联系人文件默认保存位置,详情查看 < a href = "applications/people.html" > 联系人< / a > 。< / td > < / tr >
2013-12-15 16:04:28 +04:00
< tr > < td > < span class = "path" > ~/queries/< / span > < / td > < td style = "width:10px;" > < / td >
2014-05-31 02:02:36 +04:00
< td > < a href = "queries.html" > 查询< / a > 文件保存位置,默认临时保存一周时间。< / td > < / tr >
2013-12-15 16:04:28 +04:00
< / table >
2010-07-08 22:03:41 +04:00
2015-01-17 20:26:33 +03:00
< p > < span class = "path" > /boot/home/config/< / span > 目录比较特殊:和 < span class = "path" > /boot/system/< / span > 目录相似,它总是处于包管理的监管之下,并且是只读的。当然也包含下述用户可写的目录:< / p >
2010-07-08 22:03:41 +04:00
2013-12-15 16:04:28 +04:00
< table summary = "layout" border = "0" cellspacing = "0" cellpadding = "4" >
< tr > < td > < span class = "path" > ~/config/packages/< / span > < / td > < td style = "width:10px;" > < / td >
2014-05-31 02:02:36 +04:00
< td > 该文件夹可供添加/删除 < i > 不< / i > 被其他用户共享的软件包。< / td > < / tr >
2010-07-08 22:03:41 +04:00
2013-12-15 16:04:28 +04:00
< tr > < td class = "onelinetop" > < span class = "path" > ~/config/non-packaged/< / span > < / td > < td > < / td >
2014-05-31 02:02:36 +04:00
< td > 该文件夹包含不属于 .hpkg (或者原有 BeOS 压缩档)的文件结构,并且 < i > 不< / i > 被其他用户共享。< / td > < / tr >
2010-07-08 22:03:41 +04:00
2013-12-15 16:04:28 +04:00
< tr > < td > < span class = "path" > ~/config/settings/< / span > < / td > < td > < / td >
< td > 该文件夹存放了所有程序的设置文件和一些系统配置文件。有些程序会将其设置文件存放在它们自己的子文件夹中,但是其他的则直接存放在这里。< / td > < / tr >
< / table >
2010-07-08 22:03:41 +04:00
2016-05-06 05:15:13 +03:00
< p > < span class = "box-info" > For more information on the < span class = "path" > packages< / span > and < span class = "path" > non-packaged< / span > folders, see topic < a href = "applications.html" > Applications< / a > .< / span > < / p >
2014-05-31 02:02:36 +04:00
< p > 在 < span class = "path" > ~/config/settings/< / span > 中存在一些有意思的子文件夹:< / p >
2010-07-08 22:03:41 +04:00
2013-12-15 16:04:28 +04:00
< table summary = "layout" border = "0" cellspacing = "0" cellpadding = "4" >
< tr > < td > < span class = "path" > boot/< / span > < / td > < td style = "width:10px;" > < / td >
< td > 该文件夹存放了在系统启动或者关闭时所运行的< a href = "bash-scripting.html#user-scripts" > 用户脚本< / a > 。< / td > < / tr >
2010-07-08 22:03:41 +04:00
2013-12-15 16:04:28 +04:00
< tr > < td > < span class = "path" > boot/launch/< / span > < / td > < td > < / td >
< td > 该文件夹中的程序快捷方式,或者文档在每次启动时都自动开始运行。< / td > < / tr >
2010-07-08 22:03:41 +04:00
2013-12-15 16:04:28 +04:00
< tr > < td > < span class = "path" > beos_mime/< / span > < / td > < td > < / td >
2014-05-31 02:02:36 +04:00
< td > 在这个 < acronym title = "Multipurpose Internet Mail Extensions" > MIME< / acronym > 数据库中, Haiku跟踪保持了所有的 < a href = "filetypes.html" > 文件类型< / a > 和它们的设置情况。< / td > < / tr >
2010-07-08 22:03:41 +04:00
2013-12-15 16:04:28 +04:00
< tr > < td class = "onelinetop" > < span class = "path" > deskbar/menu/< / span > < / td > < td > < / td >
2014-05-31 02:02:36 +04:00
< td > 复制或链接到出现在 < a href = "deskbar.html#deskbar-menu" > 桌面栏菜单< / a > 中的文件/文件夹/查询。< / td > < / tr >
2013-12-15 16:04:28 +04:00
< tr > < td class = "onelinetop" > < span class = "path" > kernel/drivers/< / span > < / td > < td > < / td >
2010-08-02 20:51:09 +04:00
< td > 有一个设置文件可能比较有趣: < span class = "cli" > kernel< / span > 提供了一些底层的配置,例如,禁用 < acronym title = "Symmetric Multi Processing" > SMP< / acronym > ,激活串行调试或者 允许高级电源管理。您只要将该配置行前的 “< tt > #< / tt > ” 注解符号删除即可。在操作时,要时刻小心!< / td > < / tr >
2010-07-08 22:03:41 +04:00
2013-12-15 16:04:28 +04:00
< tr > < td > < span class = "path" > Tracker/< / span > < / td > < td > < / td >
2010-07-08 22:03:41 +04:00
2014-05-31 02:02:36 +04:00
< td > 除了用于 文件浏览器 的各种设置文件外,还有一些有趣的子文件夹:< / td > < / tr >
2010-08-02 20:51:09 +04:00
< tr > < td align = "right" > < span class = "path" > DefaultFolderTemplate/< / span > < / td > < td style = "width:10px;" > < / td > < td > 显示和编排所有的属性与您喜欢的窗口大小。每个新建的文件夹都将以它为模板。< / td > < / tr >
2010-07-08 22:03:41 +04:00
2010-08-02 20:51:09 +04:00
< tr > < td align = "right" > < span class = "path" > DefaultQueryTemplates/< / span > < / td > < td > < / td > < td > 您可以为确定的文件类型定义查询结果的窗口布局。可以参阅 < a href = "queries.html#result-window" > 查询:结果窗口< / a > 主题。< / td > < / tr >
2010-07-08 22:03:41 +04:00
2014-05-31 02:02:36 +04:00
< tr > < td align = "right" > < span class = "path" > Go/< / span > < / td > < td > < / td > < td > 把您最喜欢的路径的链接放置在这里,可以打开或者保存面板中对他们进行访问。可以参阅 < a href = "gui.html#favorites-recent" > Haiku 的图形用户界面:喜好和最近文件夹< / a > 主题。< / td > < / tr >
2010-07-08 22:03:41 +04:00
2014-05-31 02:02:36 +04:00
< tr > < td align = "right" > < span class = "path" > Tracker New Template/< / span > < / td > < td > < / td > < td > 为任意的文件类型添加模板,它们就可以在 文件浏览器的 < span class = "menu" > 文件 | 新建...< / span > 菜单中进行访问。 可以参阅< a href = "tracker.html#working-with-files" > 文件浏览器:文件处理< / a > 主题。< / td > < / tr >
2010-07-08 22:03:41 +04:00
< / table >
< / div >
< / div >
< div class = "nav" >
< div class = "inner" > < span >
2010-08-02 20:51:09 +04:00
« < a href = "bootloader.html" > 引导程序< / a >
:: < a href = "contents.html" class = "uplink" > 内容< / a >
:: < a href = "gui.html" > Haiku的图形用户界面< / a > »
2010-07-08 22:03:41 +04:00
< / span > < / div >
< / div >
< / body >
< / html >