Where all these variables stored?
I type in "set" and "env" command and find those variables but they are not setted in ~/.bash_profile so I suppose those things was configed in somewhere in /etc/.
Am I right? I am new to bash. |
There are more places bash looks when you start a bash shell.
- Execution sequence for .bash_profile, .bashrc, .bash_login, .profile and .bash_logout Also have a look at the INVOCATION section in the bash manual page (man bash). Here's a summary: Bash Startup Files |
re:drunna
Quote:
Code:
if [ -f ~/.bashrc ]; then . ~/.bashrc; fi |
Quote:
source it - means run commands in that script, but instead creating a new subshell, execute them in present shell. so whatever you have set in script are now available to current shell (something like logout-login or refresh). -f = if file exists . = sourcing (you can also use 'source' instead of '.' both are same) |
Quote:
It looks that there are lots of parameters can be list in [conditions], like -f -z -n, does all these are parameters from command "test"? |
Quote:
|
All times are GMT -5. The time now is 09:57 AM. |