Last change
on this file since ec8de0a was cb0e00d, checked in by Jim Gifford <clfs@…>, 16 years ago |
Finish removal if /etc/inputrc
|
-
Property mode
set to
100644
|
File size:
1.1 KB
|
Line | |
---|
1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 | ]>
|
---|
7 |
|
---|
8 | <sect1 id="ch-scripts-profile">
|
---|
9 | <?dbhtml filename="profile.html"?>
|
---|
10 |
|
---|
11 | <title>Creating /etc/profile</title>
|
---|
12 |
|
---|
13 | <indexterm zone="ch-scripts-profile">
|
---|
14 | <primary sortas="e-/etc/profile">/etc/profile</primary>
|
---|
15 | </indexterm>
|
---|
16 |
|
---|
17 | <para>Is the file that specifices how to your environment will function.</para>
|
---|
18 |
|
---|
19 | <para os="a">Now we will create the profile file for use with our system:</para>
|
---|
20 |
|
---|
21 | <screen os="b"><userinput>cat > ${CLFS}/etc/profile<< "EOF"
|
---|
22 | <literal># /etc/profile
|
---|
23 |
|
---|
24 | # Set the initial path
|
---|
25 | export PATH=/bin:/usr/bin
|
---|
26 |
|
---|
27 | if [ `id -u` -eq 0 ] ; then
|
---|
28 | PATH=/bin:/sbin:/usr/bin:/usr/sbin
|
---|
29 | unset HISTFILE
|
---|
30 | fi
|
---|
31 |
|
---|
32 | # Setup some environment variables.
|
---|
33 | export USER=`id -un`
|
---|
34 | export LOGNAME=$USER
|
---|
35 | export HOSTNAME=`/bin/hostname`
|
---|
36 | export HISTSIZE=1000
|
---|
37 | export HISTFILESIZE=1000
|
---|
38 | export PAGER='/bin/more '
|
---|
39 | export EDITOR='/bin/vi'
|
---|
40 |
|
---|
41 | # End /etc/profile</literal>
|
---|
42 | EOF</userinput></screen>
|
---|
43 |
|
---|
44 | </sect1>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.