About 50 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 is a link to …

  2. What is the difference between .profile and .bash_profile and why don't ...

    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. …

  3. Why isn't bash reading my `~/.profile`? - Unix & Linux Stack Exchange

    Jul 25, 2024 · If I run source ~/.profile it does get added to my PATH. I definitely don't have a ~/.bash_login or ~/.bash_profile -- so why would bash not read my local .profile? adding in answer to …

  4. 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 …

  5. What is the difference between ~/.profile, ~/.bashrc, ~/.bash_profile ...

    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 with every …

  6. 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 it is executed. …

  7. SSHing into system with ZSH as default shell doesn't run /etc/profile

    Aug 27, 2019 · However, due to zsh man entry / documentation, zsh should source /etc/profile which in turn sources the scripts under /etc/profile.d/*.sh. My question above originated in the fact, that the …

  8. Make systemd service inherit environment variables from /etc/profile.d

    Oct 31, 2021 · I erroneously assumed that the service would have access to the environment variables all users inherit from scripts/exports under /etc/profile.d Is there a way to accomplish this without …

  9. Customize bash looks for user profile on debian 9

    Each user has their own .bashrc and .profile configuration file on Debian. So, you could enter your customized prompt also in /home/sparrow/.bashrc. Alternatively, you can move your changes from …

  10. Why doesn't my ~/.bash_profile work? - Unix & Linux Stack Exchange

    The file ~/.bash_profile is read by bash when it is a login shell. That's what you get when you log in in text mode. When you log in under X, the startup scripts are executed by /bin/sh. On Ubuntu and …