blob: 8a3d89515a33209e2bdcb29bf5be31e4e379d65d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<!--Converted with LaTeX2HTML 96.1-h (September 30, 1996) by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds -->
<HTML>
<HEAD>
<TITLE>Shell startup</TITLE>
<META NAME="description" CONTENT="Shell startup">
<META NAME="keywords" CONTENT="sag">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<LINK REL=STYLESHEET HREF="sag.css">
</HEAD>
<BODY LANG="EN" >
<A NAME="tex2html1379" HREF="node86.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="./next_motif.gif"></A> <A NAME="tex2html1377" HREF="node79.html"><IMG WIDTH=26 HEIGHT=24 ALIGN=BOTTOM ALT="up" SRC="./up_motif.gif"></A> <A NAME="tex2html1373" HREF="node84.html"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM ALT="previous" SRC="./previous_motif.gif"></A> <A NAME="tex2html1381" HREF="node1.html"><IMG WIDTH=65 HEIGHT=24 ALIGN=BOTTOM ALT="contents" SRC="./contents_motif.gif"></A> <A NAME="tex2html1382" HREF="node114.html"><IMG WIDTH=43 HEIGHT=24 ALIGN=BOTTOM ALT="index" SRC="./index_motif.gif"></A> <BR>
<B> Next:</B> <A NAME="tex2html1380" HREF="node86.html">Managing user accounts</A>
<B>Up:</B> <A NAME="tex2html1378" HREF="node79.html">Logging In And Out</A>
<B> Previous:</B> <A NAME="tex2html1374" HREF="node84.html">Access control</A>
<BR> <P>
<H1><A NAME="SECTION00960000000000000000">Shell startup</A></H1>
<P>
When an interactive login shell starts, it automatically executes
one or more pre-defined files. Different shells execute different
files; see the documentation of each shell for further information.
<P>
Most shells first run some global file, for example, the Bourne
shell (<tt>/bin/sh</tt><A NAME="2708"> </A>) and its derivatives execute <tt>/etc/profile</tt><A NAME="2710"> </A>;
in addition, they execute <tt>.profile</tt><A NAME="2712"> </A> in the user's home directory.
<tt>/etc/profile</tt><A NAME="2714"> </A>
allows the system administrator to have set up a common user
environment, especially by setting the PATH to include local
command directories in addition to the normal ones. On the other
hand, <tt>.profile</tt><A NAME="2716"> </A> allows the user to customize the environment
to his own tastes by overriding, if necessary, the default
environment.
<P>
<BR> <HR>
<P><ADDRESS>
<I>Lars Wirzenius <BR>
Sat Nov 15 02:32:11 EET 1997</I>
</ADDRESS>
</BODY>
</HTML>
|