# Where should I install an alias file under UNIX bash ?

**URL:** <https://community.unix.com/t/where-should-i-install-an-alias-file-under-unix-bash/298151>\
**Category:** macOS\
**Created:** [October 28, 2011, 8:27am UTC](https://community.unix.com/t/where-should-i-install-an-alias-file-under-unix-bash/298151 "2011-10-28T08:27:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shub22](https://community.unix.com/letter_avatar/shub22/32/5_5575768a8748004e209b776fc1b2916d.png) [@shub22](https://community.unix.com/u/shub22)\
**Post date:** [October 28, 2011, 8:27am UTC](https://community.unix.com/t/where-should-i-install-an-alias-file-under-unix-bash/298151/1 "2011-10-28T08:27:13Z")

</div>

I have a file named 'aliases' which contains a list of aliases like:

alias loc='locate'  
alias h='history'  
alias .='pwd'  
alias ..='cd ..'  
alias cd..='cd .. ; pwd'  
..............................

Where should I put this file (alias) so when Terminal launches .bash and thus a shell at opening , this file could automatically be launched with it ?  
There is a file named .bash under some directory which I hesitate to modify because it is read-only. ☹  
I just need to execute automatically the UNIX command sh aliases at every window opening under Terminal.

I own a PowerBook Mac with OS Lion 10.7.2

---

<div class="post-metadata">

**Author:** ![CarloM](https://community.unix.com/letter_avatar/carlom/32/5_5575768a8748004e209b776fc1b2916d.png) [@CarloM](https://community.unix.com/u/CarloM)\
**Post date:** [October 28, 2011, 8:30am UTC](https://community.unix.com/t/where-should-i-install-an-alias-file-under-unix-bash/298151/2 "2011-10-28T08:30:04Z")

</div>

I usually put aliases in $HOME/.alias, and . (or source) it from $HOME/.bashrc (or .profile. or .cshrc, etc).
