How to list or show all bash enviorment configuration files

Fig.04: List all bash enviorment configuration files

Fig.04: List all bash enviorment configuration files

The command is as follows to display a list of all bash shell environment files:

ls -l  ~/.bash* ~/.profile /etc/bash* /etc/profile

Of course you can take a look at your bash configuration files using vim (editing) or less or more:

more  ~/.bash* ~/.profile /etc/bash* /etc/profile
less  ~/.bash* ~/.profile /etc/bash* /etc/profile
most  ~/.bash* ~/.profile /etc/bash* /etc/profile
## Mass file editing may need to run with sudo. Be careful!!!! ##
vim  ~/.bash* ~/.profile /etc/bash* /etc/profile

Some Linux distro man change bash config file names. See your local man pages or distro documentation for more info.

Examples and usage: A Shell Primer: Master Your Linux, OS X, Unix Shell Environment

Leave a Comment