About 1,090,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 1. Note that if bash is started as sh (e.g. …

  2. What is the difference between .profile and .bash_profile and why …

    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 …

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

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

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

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

  6. What does the ". /etc/profile" do? - Unix & Linux Stack Exchange

    Jun 1, 2022 · I saw these instructions in a book and don't know what the . /etc/profile command does, what is it? Is it the same as source /etc/profile? Linux-specific Java steps On Linux …

  7. When should I use .bashrc and when .profile? [duplicate]

    In this case, each new terminal window will run as a login shell, and so will execute .profile or equivalent when opened. each terminal window is treated as a part of the main GUI login …

  8. How do you run a command with sudo in `~/.profile`?

    Apr 1, 2018 · Is it a bad practice to run a command which requires sudo in ~/.profile? If really want to do that, how can I make the command run at rebooting Ubuntu? make the command …

  9. Setting PATH vs. exporting PATH in ~/.bash_profile [duplicate]

    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 …

  10. Why might one add ~/.profile to ~/.bash_profile?

    Jan 7, 2016 · Even if you have bash as your login shell, .profile is often the one that's executed when you log in in graphical mode — many distributions set up the X session startup script to …