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 original sh sourced profile on startup bash will try to source bash_profile first, but if that doesn't exist, it will source profile Note that if bash is started as sh (e g bin sh is a link to bin bash) or is started with the --posix flag, it tries to emulate sh, and only reads profile Footnotes: Actually, the first one of bash_profile, bash_login, profile See also: Bash
bash - What is the difference between . profile and . bash_profile and . . . The profile dates back to the original Bourne shell known as sh Since the GNU shell bash is (depending on its options) a superset of the Bourne shell, both shells can use the same startup file That is, provided that only sh commands are put in profile For example, alias is a valid built-in command of bash but unknown to sh Therefore, if you had only a profile in your home directory and
What do the scripts in etc profile. d do? - Unix Linux Stack Exchange It says that the etc profile file sets the environment variables at startup of the Bash shell The etc profile d directory contains other scripts that contain application-specific startup files, which are also executed at startup time by the shell
When exactly do the scripts in etc profile. d get executed? In etc profile d I got a script called logchk sh which is meant to send an email to the admin email address via bin mail If someone logs in via ssh user@serveradress this script is properly executed and the email is sent However, it depends on the login method if the script is executed or not What works is the following
Setting PATH vs. exporting PATH in ~ . bash_profile What's the difference and which is better to use when customizing my bash profile? Documentation on the export command is scarce, as it's a builtin cmd Excerpt from version 1 of my ~ bash_profil
ubuntu - AppArmor Error preventing removing AA, Repairing AA or install . . . Issue the following: dpkg -S <offending profile> This should tell us the package the profile belongs to Use the Ubuntu Launchpad to search for the package See if there is already a bug related to your profile, or report a new one Note: If the above testing approach fails on the first profile or every profile there is something worse going on
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 )