27.08.2015 Views

Advanced Bash−Scripting Guide

Advanced Bash-Scripting Guide - Nicku.org

Advanced Bash-Scripting Guide - Nicku.org

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 27. Files<br />

startup files<br />

These files contain the aliases and environmental variables made available to Bash running as a user<br />

shell and to all Bash scripts invoked after system initialization.<br />

/etc/profile<br />

systemwide defaults, mostly setting the environment (all Bourne−type shells, not just Bash [56])<br />

/etc/bashrc<br />

systemwide functions and aliases for Bash<br />

$HOME/.bash_profile<br />

user−specific Bash environmental default settings, found in each user's home directory (the local<br />

counterpart to /etc/profile)<br />

$HOME/.bashrc<br />

user−specific Bash init file, found in each user's home directory (the local counterpart to<br />

/etc/bashrc). Only interactive shells and user scripts read this file. See Appendix G for a sample<br />

.bashrc file.<br />

logout file<br />

$HOME/.bash_logout<br />

user−specific instruction file, found in each user's home directory. Upon exit from a login (Bash)<br />

shell, the commands in this file execute.<br />

Chapter 27. Files 310

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!