O'Reilly logo

Practical Linux by Bill Ball, John Ray, Michael Turner, M. Drew Streib

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Customizing Your Login

Changes made to shell variables in the .bashrc and profile files under the /etc directory affect all users and are systemwide. Individual users can make changes, or local definitions, to the .bashrc and .profile under their home directories. Local environment variables are defined in .profile like so:

# .profile


# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User-specific environment and startup programs

PATH=$PATH:$HOME/bin
ENV=$HOME/.bashrc
USERNAME=""

export USERNAME ENV PATH

Lines beginning with a pound sign (#) are comments and are ignored by the shell. When you log in, the bash shell uses this program to first look for a file called .bashrc in your home directory, and then sets some basic ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required