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

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

  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. How to add a function to .bash_profile/.profile/bashrc in shell?

    Well I tried your way for creating a custom function of printing it's argument, but even if I add that function in .bash_profile then also I have to do source ~/.bash_profile everytime I open terminal by …

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

  7. 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 shell, and it's the …

  8. profile - Find out what scripts are being run by bash at login - Unix ...

    My terminal starts a login shell, so ~/.bash_profile is sourced, followed by ~/.profile and ~/.bashrc. Only in ~/.profile do I create the paths entries which are duplicated. To be pedantic, this is the order in …

  9. How to correctly add a path to PATH? - Unix & Linux Stack Exchange

    Feb 21, 2016 · 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 …

  10. linux - How to set audio device profile and route with PipeWire ...

    Aug 4, 2023 · Here's an approach with pw-cli, derived from this PulseAudio to Pipewire migration guide. First, find out the card id for your device: pw-cli ls Device Then, find out the corresponding profile …