Do you want BuboFlash to help you learning these things? Or do you want to add or correct something? Click here to log in or create user.



Question
In linux, the bash scripts that get run (for setting env variables and other such initializations) only after login (i.e. on first launched shell), are: /etc/profile, then [...]
Answer

~/.profile

^^ actually order is /etc/profile, then ~/.bash_profile, then ~/.bash_login, then ~/.profile BUT on most systems its /etc/profile, then ~/.profile as the other ones are often not there


Question
In linux, the bash scripts that get run (for setting env variables and other such initializations) only after login (i.e. on first launched shell), are: /etc/profile, then [...]
Answer
?

Question
In linux, the bash scripts that get run (for setting env variables and other such initializations) only after login (i.e. on first launched shell), are: /etc/profile, then [...]
Answer

~/.profile

^^ actually order is /etc/profile, then ~/.bash_profile, then ~/.bash_login, then ~/.profile BUT on most systems its /etc/profile, then ~/.profile as the other ones are often not there

If you want to change selection, open document below and click on "Move attachment"

20. Advanced Shell Scripting
a login shell, meaning that it reads and execute several scripts to initialize the environment. In the case of bash , the files it reads are: /etc/profile , ~/.bash_profile , ~/.bash_login and <span>~/.profile , in that order. In addition, an interactive shell that is not a login shell also reads ~/.bashrc . Note that traditional sh shells only read /etc/profile and ~/.profile . 20.8.1 Custom

Summary

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Details

No repetitions


Discussion

Do you want to join discussion? Click here to log in or create user.