Tagged Questions
0
votes
3answers
166 views
What is the difference between '.' and 'source' in shells? [duplicate]
Possible Duplicate:
running script with “. ” and with “source ”
I have used both the dot command '.' and 'source' to reload a given rc file (typically to update my environment variables) ...
2
votes
3answers
136 views
What is the difference between ./script and . ./script? [duplicate]
Possible Duplicate:
Using ‘.’ to execute files in bash
I was trying to figure out how to export my environmental via script instead of changing my .bashrc file.
I found this old useful ...
8
votes
2answers
1k views
What is the difference between ~/.profile, ~/.bashrc, ~/.bash_profile, ~/.gnomerc, /etc/bash_bashrc, /etc/screenrc …?
Answers to the questions on SO and askubuntu, along with poking through (and reading headers of) $HOME and /etc/, indicate a number of files that can be used to set environment variables, including:
...
29
votes
4answers
36k views
How to correctly add a path to PATH?
I'm wondering where a new path has to be added to PATH environment variable. I know this is accomplished editing .bash_rc (for example), but it's not clear how to do this.
This way:
export ...