0

hey everyone
I want to change some environment variables , but I can't find the .bashrc file were I can change them, so can anyone tell me how to change environment variables in linux mint 14

3
Contributors
2
Replies
18
Views
4 Years
Discussion Span
Last Post by here2serve
1

Do you want to change the environment variables for all users, or just your own account? Files that start with a dot are not visible. If you want to see them, run the command "ls -a ~". You should see all the files and directories, including the dotted ones, in your home directory. In any case, don't make the changes in .bashrc - it is better to set them in .bash_profile.

1

Rubberman is correct. /home/username/.bash_profile is the place to set it.

Sample

cat .bash_profile 
# .bash_profile

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

# User specific environment and startup programs

PATH=$PATH:$HOME/.local/bin:$HOME/bin

export PATH

Bash env settings

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.