Changeset f3317d4 for chapter07/locale.xml
- Timestamp:
- 02/15/2013 09:14:37 PM (11 years ago)
- Branches:
- 7.5-systemd, 7.6-systemd, 7.7-systemd, 7.8-systemd, 7.9-systemd
- Children:
- b588d62
- Parents:
- 4a4e017
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
chapter07/locale.xml
r4a4e017 rf3317d4 6 6 ]> 7 7 8 <sect1 id="ch-scripts- profile">9 <?dbhtml filename=" profile.html"?>8 <sect1 id="ch-scripts-locale"> 9 <?dbhtml filename="locale.html"?> 10 10 11 <title> The Bash Shell Startup Files</title>11 <title>Configuring the System Locale</title> 12 12 13 <indexterm zone="ch-scripts- profile">14 <primary sortas="e- /etc/profile">/etc/profile</primary>13 <indexterm zone="ch-scripts-locale"> 14 <primary sortas="e-etc-locale-conf">/etc/locale.conf</primary> 15 15 </indexterm> 16 16 17 <para>The shell program <command>/bin/bash</command> (hereafter referred to 18 as <quote>the shell</quote>) uses a collection of startup files to help 19 create an environment to run in. Each file has a specific use and may affect 20 login and interactive environments differently. The files in the <filename 21 class="directory">/etc</filename> directory provide global settings. If an 22 equivalent file exists in the home directory, it may override the global 23 settings.</para> 24 25 <para>An interactive login shell is started after a successful login, using 26 <command>/bin/login</command>, by reading the <filename>/etc/passwd</filename> 27 file. An interactive non-login shell is started at the command-line (e.g., 28 <prompt>[prompt]$</prompt><command>/bin/bash</command>). A non-interactive 29 shell is usually present when a shell script is running. It is non-interactive 30 because it is processing a script and not waiting for user input between 31 commands.</para> 32 33 <para>For more information, see <command>info bash</command> under the 34 <emphasis>Bash Startup Files and Interactive Shells</emphasis> section.</para> 35 36 <para>The files <filename>/etc/profile</filename> and 37 <filename>~/.bash_profile</filename> are read when the shell is 38 invoked as an interactive login shell.</para> 39 40 <para>The base <filename>/etc/profile</filename> below sets some 17 <para>The <filename>/etc/locale.conf</filename> below sets some 41 18 environment variables necessary for native language support. Setting 42 19 them properly results in:</para> … … 136 113 137 114 <para>Once the proper locale settings have been determined, create the 138 <filename>/etc/ profile</filename> file:</para>115 <filename>/etc/locale.conf</filename> file:</para> 139 116 140 <screen><userinput>cat > /etc/profile << "EOF" 141 <literal># Begin /etc/profile 142 143 export LANG=<replaceable><ll>_<CC>.<charmap><@modifiers></replaceable> 144 145 # End /etc/profile</literal> 117 <screen><userinput>cat > /etc/locale.conf << "EOF" 118 <literal>LANG=<replaceable><ll>_<CC>.<charmap><@modifiers></replaceable></literal> 146 119 EOF</userinput></screen> 147 120
Note:
See TracChangeset
for help on using the changeset viewer.