Librenix
Headlines | Linux | Apps | Coding | BSD | Admin | News
Information for Linux System Administration 

.bash_profile and .bashrc compared

Up
vote
Down

Ever wondered what the difference is between .bashrc and .bash_profile? Here's the answer...
According to the bash man page, .bash_profile is executed for login shells, while .bashrc is executed for interactive non-login shells.

What I take this to mean is that when I login when using a console, either physically at the machine or using ssh, .bash_profile is executed.
 read more | score:8713 | -Ray, April 18, 2007
More Software articles...

Selected articles

Space Tyrant: A threaded game server project in C

MiniLesson: An introduction to Linux in ten commands

Programming Language Tradeoffs: 3GL vs 4GL

Download: Linux 3D Client for Starship Traders

The life cycle of a programmer

The short life and hard times of a Linux virus

 

Firefox sidebar

Site map

Site info

News feed

Features

Login
(to post)

Search


T-shirt gallery:  I Love Horses T-shirts
 

Articles are owned by their authors.   © 2000-2010 Ray Yeargin