Linux

  1. Home
  2. Computing & Technology
  3. Linux

Linux System Administrator's Guide

From Authors, for About.com


   Linux System Administrators Guide:
   Prev    Chapter 10. Logging In And Out    Next

10.6. Shell startup

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.

Most shells first run some global file, for example, the Bourne shell (/bin/sh ) and its derivatives execute /etc/profile ; in addition, they execute .profile in the user's home directory. /etc/profile 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, .profile allows the user to customize the environment to his own tastes by overriding, if necessary, the default environment.


   Prev    Home    Next
   Access control    Up    Managing user accounts


* License

* Introduction to Linux Index

Explore Linux

About.com Special Features

Build Your Own Website

Step-by-step advice on how to do everything from choosing a Web host to promoting your content. More >

Connect Your Home Computers

Easy ways to connect two computers for networking purposes. More >

Linux

  1. Home
  2. Computing & Technology
  3. Linux
  4. Linux Documentation
  5. System Administration
  6. Linux System Administrator's Guide - Shell startup

©2009 About.com, a part of The New York Times Company.

All rights reserved.