copy and paste this google map to your website or blog!
Press copy button and paste into your blog or website.
(Please switch to 'HTML' mode when posting into your blog. Examples: WordPress Example, Blogger Example)
What is the difference between ~ . profile and ~ . bash_profile? The profile was the original profile configuration for the Bourne shell (a k a , sh) bash, being a Bourne compatible shell will read and use it The bash_profile on the other hand is only read by bash It is intended for commands that are incompatible with the standard Bourne shell
How to add a function to . bash_profile . profile bashrc in shell? Since Bash now prime common of all distro the next would be 2:- ~ profile as system standard then within contents of profile "if exists" bash_profile would put -> 3:- bash_profile 4:- bash_login 5:- bashrc bash_aliases would be in my mind the more correct order, setting up the standard Terminal and Shell environment and usual bash_login
Setting PATH vs. exporting PATH in ~ . bash_profile Any of the ENV files first invoked by a shell such as bashrc or profile will set variable values for the life of that shell So any variables that are set and export ed within those files will maintain that export characteristic and be export ed to all child processes invoked by that shell for the life of the shell or until they are unset
What do the scripts in etc profile. d do? - Unix Linux Stack Exchange @AvindraGoolcharan Different distros may use different schemes for this kind of thing The profile d directory only works because its contents are sourced by etc profile, which is specified by shells such as bash as a startup file (see INVOCATION in man bash); if you edit etc profile, you can disable etc profile d
bash - How to correctly add a path to PATH? - Unix Linux Stack Exchange The profile file is read by login shells, so it will only take effect the next time you log in (Some systems configure terminals to read a login shell; in that case you can start a new terminal window, but the setting will take effect only for programs started via a terminal, and how to set PATH for all programs depends on the system )
Ash profile configuration file - Unix Linux Stack Exchange So if you set that somehow (Maybe in your ~ profile, or some other 'overarching' environment control), then any future forked shells will run that script Very handy for non-login cases Example: In your profile, something like:
How to permanently set environmental variables To do if for all users shells, depending on distro you could use etc environment or etc profile Creating a new file in etc profile d may be preferable if it exists, as it will be less likely to conflict with updates made by the packaging system
. bash_profile not sourced when running su - Unix Linux Stack Exchange 0 If using the Gnome environment in Scientific Linux 6 (or presumably RHEL 6), start a terminal Go to Edit -> Profile Preferences -> "Title and Command" tab Make sure that the checkbox "Run command as a login shell" is checked I found that the Gnome terminal application is ignoring my bash_profile unless I do this Share