creatingdirs.po 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. # SOME DESCRIPTIVE TITLE
  2. # Copyright (C) YEAR Free Software Foundation, Inc.
  3. # This file is distributed under the same license as the PACKAGE package.
  4. # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
  5. #
  6. #, fuzzy
  7. msgid ""
  8. msgstr ""
  9. "Project-Id-Version: PACKAGE VERSION\n"
  10. "POT-Creation-Date: 2020-06-17 12:44+0800\n"
  11. "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
  12. "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
  13. "Language-Team: LANGUAGE <LL@li.org>\n"
  14. "Language: \n"
  15. "MIME-Version: 1.0\n"
  16. "Content-Type: text/plain; charset=UTF-8\n"
  17. "Content-Transfer-Encoding: 8bit\n"
  18. #. type: Content of: <sect1><title>
  19. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/creatingdirs.xml:11
  20. msgid "Creating Directories"
  21. msgstr ""
  22. #. type: Content of: <sect1><para>
  23. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/creatingdirs.xml:13
  24. msgid ""
  25. "It is time to create the full structure in the LFS file system. Create a "
  26. "standard directory tree by issuing the following commands:"
  27. msgstr ""
  28. #. type: Content of: <sect1><screen>
  29. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/creatingdirs.xml:16
  30. #, no-wrap
  31. msgid ""
  32. "<userinput>mkdir -pv "
  33. "/{bin,boot,etc/{opt,sysconfig},home,lib/firmware,mnt,opt}\n"
  34. "mkdir -pv /{media/{floppy,cdrom},srv,var}\n"
  35. "mkdir -pv /usr/{,local/}{bin,include,lib,sbin,src}\n"
  36. "mkdir -pv /usr/{,local/}share/{color,dict,doc,info,locale,man}\n"
  37. "mkdir -pv /usr/{,local/}share/{misc,terminfo,zoneinfo}\n"
  38. "mkdir -pv /usr/{,local/}share/man/man{1..8}\n"
  39. "install -dv -m 1777 /tmp /var/tmp\n"
  40. "install -dv -m 0750 /root\n"
  41. "\n"
  42. "mkdir -v /var/{log,mail,spool}\n"
  43. "ln -sv /run /var/run\n"
  44. "ln -sv /run/lock /var/lock\n"
  45. "mkdir -pv /var/{opt,cache,lib/{color,misc,locate},local}</userinput>"
  46. msgstr ""
  47. #. type: Content of: <sect1><para>
  48. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/creatingdirs.xml:30
  49. msgid ""
  50. "Directories are, by default, created with permission mode 755, but this is "
  51. "not desirable for all directories. In the commands above, two changes are "
  52. "made&mdash;one to the home directory of user <systemitem "
  53. "class=\"username\">root</systemitem>, and another to the directories for "
  54. "temporary files."
  55. msgstr ""
  56. #. type: Content of: <sect1><para>
  57. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/creatingdirs.xml:36
  58. msgid ""
  59. "The first mode change ensures that not just anybody can enter the <filename "
  60. "class=\"directory\">/root</filename> directory&mdash;the same as a normal "
  61. "user would do with his or her home directory. The second mode change makes "
  62. "sure that any user can write to the <filename "
  63. "class=\"directory\">/tmp</filename> and <filename "
  64. "class=\"directory\">/var/tmp</filename> directories, but cannot remove "
  65. "another user's files from them. The latter is prohibited by the so-called "
  66. "<quote>sticky bit,</quote> the highest bit (1) in the 1777 bit mask."
  67. msgstr ""
  68. #. type: Content of: <sect1><sect2><title>
  69. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/creatingdirs.xml:46
  70. msgid "FHS Compliance Note"
  71. msgstr ""
  72. #. type: Content of: <sect1><sect2><para>
  73. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/creatingdirs.xml:48
  74. msgid ""
  75. "The directory tree is based on the Filesystem Hierarchy Standard (FHS) "
  76. "(available at <ulink "
  77. "url=\"https://refspecs.linuxfoundation.org/fhs.shtml\"/>). The FHS also "
  78. "specifies the optional existence of some directories such as <filename "
  79. "class=\"directory\">/usr/local/games</filename> and <filename "
  80. "class=\"directory\">/usr/share/games</filename>. We create only the "
  81. "directories that are needed. However, feel free to create these directories."
  82. msgstr ""