About 1,070,000 results
Open links in new tab
  1. What is the difference between ~/.profile and ~/.bash_profile?

    Feb 27, 2019 · 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 …

  2. What is the difference between ~/.profile, ~/.bashrc, …

    The one possible exception is /etc/profile and .profile, which may be used by multiple different shells (including at least sh and bash). There is something called an environment associated …

  3. bash - What is the difference between .profile and .bash_profile …

    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 …

  4. Colorizing your terminal and shell environment? - Unix & Linux …

    Sure, you can symlink zsh to a file named after any other shell and emulate that shell, but when you do that it doesn't read your .bashrc, .bash_profile, etc. Also, you cannot put emulate bash …

  5. When is .profile executed? - Unix & Linux Stack Exchange

    Feb 28, 2017 · I was installing an application and had trouble with understanding why the installation guide told to add an export command to the one of startup files. I did not see when …

  6. When exactly do the scripts in /etc/profile.d get executed?

    Jan 28, 2023 · 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 …

  7. What do the scripts in /etc/profile.d do? - Unix & Linux Stack …

    What about appending lines to profile.local? Is this acceptable vs. creating scripts in the profile.d folder?

  8. sudo as another user with their environment

    Jan 2, 2015 · While sudo -i should be a login shell it is different from what sudo su - does on Arch linux. A clear sign the former does not do a login is that it does not display the last login time …

  9. How to permanently set environmental variables

    Feb 28, 2014 · You can add it to the file .profile or your login shell profile file (located in your home directory). To change the environmental variable "permanently" you'll need to consider at least …

  10. What is the purpose of .bashrc and how does it work?

    My comment is just a stronger statement of Ilmari Karonen's 2014 comment. It is factually incorrect to say ".bashrc runs on every interactive shell launch". A login shell is an interactive …