bash:Config

Two Kinds of Bash Configuration.

    1. Login profile configuration

    2. Sub shell configuration

root@bunturx:/usr/share/doc/bash# file /etc/skel/.profile /etc/skel/.profile: ASCII English text root@bunturx:/usr/share/doc/bash# file /etc/profile /etc/profile: ASCII English text root@bunturx:/usr/share/doc/bash# file ~/.profile /root/.profile: ASCII text root@bunturx:/usr/share/doc/bash# less /etc/skel/.profile root@bunturx:/usr/share/doc/bash# less /etc/profile root@bunturx:/usr/share/doc/bash# less ~/.profile

Check: less /etc/skel/.bashrc

BASH START UP FILES:

[rex@ssi startup-files]$ ls

Bash_aliases bash-profile Bash_profile bashrc Bashrc.bfox README

[rex@ssi startup-files]$ pwd

/usr/share/doc/bash/examples/startup-files

root@bunturx:/usr/share/doc/bash# ls

changelog.Debian.gz inputrc.arrows README.abs-guide

COMPAT.gz INTRO.gz README.bash_completion.gz

copyright NEWS.gz README.commands.gz

FAQ.gz POSIX.gz README.Debian.gz

root@bunturx:/usr/share/doc/bash# less README.abs-guide

root@bunturx:/usr/share/doc/bash# less copyright

other sources:

http://tiswww.case.edu/php/chet/bash/README

Bash is free software, distributed under the terms of the [GNU] General Public License as published by the Free Software Foundation, version 3 of the License (or any later version). For more information, see the file COPYING. A number of frequently-asked questions are answered in the file `doc/FAQ'. To compile Bash, type `./configure', then `make'. Bash auto-configures the build process, so no further intervention should be necessary. Bash builds with `gcc' by default if it is available. If you want to use `cc' instead, type CC=cc ./configure if you are using a Bourne-style shell. If you are not, the following may work: env CC=cc ./configure Read the file INSTALL in this directory for more information about how to customize and control the build process. The file NOTES contains platform-specific installation and configuration information. If you are a csh user and wish to convert your csh aliases to Bash aliases, you may wish to use the script `examples/misc/alias-conv.sh' as a starting point. The script `examples/misc/cshtobash' is a more ambitious script that attempts to do a more complete job.

bash: Configuration Files

To remain compatible with the Bourne shell

    • ~/.profile and /etc/profile

Also parses ~/.bash_profile, ~/.bash_login, and ~/.bashrc, if they exist

    • ~/.bash_login only processed once, at login

If ~/.bash_logout exists, it will be run on logout.

Login shell options

    • --login

    • --noprofile

Subshell options

    • --rcfile foofile

    • --norc