Everything2
Near Matches
Ignore Exact
Full Text
Everything2

UNIX shell init files

created by wangmu

(idea) by wangmu (52.4 min) (print)   ?   (I like it!) 1 C! Fri May 26 2000 at 16:01:31

All the UNIX shells have several configuration files which they read on startup. The set of configuration files is generally dependent on whether the shell is a login shell, a non-login interactive shell, or a non-interactive shell, and another complication is that non-login shells usually, but not always, inherit their environment from a login shell. Here's a list of the configuration files used by some popular UNIX shells.
  • bash
    • Login shells: /etc/profile then the first readable file from ~/.bash_profile, ~/.bash_login and ~/.profile
    • Non-login interactive shells: ~/.bashrc
    • Non-interactive shells: the value of BASH_ENV.
  • sh
    • Login shells: /etc/profile and ~/.profile
    • Non-login interactive shells: the value of ENV
    • Non-interactive shells: nothing.
  • tcsh
    • Login shells: /etc/csh.cshrc, /etc/csh.login, the first readable file from ~/.tcshrc and ~/.cshrc, ~/.login
    • Non-login shells (whether interactive or not): /etc/csh.cshrc, the first readable file from ~/.tcshrc and ~/.cshrc.
  • csh
    • Login shells: /etc/csh.login, ~/.cshrc, ~/.login
    • Non-login shells: ~/.cshrc.

printable version
chaos

run levels Nethack-based Linux distribution UNIX shell bash
command.com bashrc getgroups (int gidsetlen, gid_t *gidset) configuration
sh Linux Dylan Thomas ARJ
Netware Loadable Module Unix file environment
Interactive And then we'll invade Russia
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.
  Epicenter
Login
Password

password reminder
register

Everything2 Help

Cool Staff Picks
Nodes your sibling would have liked:
The Two Cultures
Alexander the Great
Willie Nelson
Wilhelm Scream
Socrates
A Study On The Effects Of THC
How to hide your hard disk porn stash
Apocrypha
Language is like a river
Bowling for Columbine
Gerontion
In the empty mountains
Abats in Provence
New Writeups
SwimmingMonkey
Conversations with Fo Fo- the Loneliest dog in Purgatory(fiction)
locke baron
lynx(thing)
Simulacron3
Reality, Dimensions and the Natural Ontology(essay)
SubSane
Making Love to a 9-Foot Woman(person)
Ouzo
Thoughts(idea)
antigravpussy
I fall silent, listening. The breadcrumbs are talking about us(person)
calgon
Buffalo Bill by the pool(poetry)
gate
Anarchy is Order(idea)
ushdfgakjasgh
Scribeling(thing)
XWiz
Trism(review)
artman2003
Briefcase Full of Souls - Part I(fiction)
Dreamvirus
Alan Ladd(person)
waverider37
Harold Holt(person)
The Debutante
Until death do us part(fiction)
Ysardo
a brother to a sister(personal)
This page courtesy of The Everything Development Company