About 1,040,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. 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 …

  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. How to permanently set environmental variables

    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 these situations:

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

    .profile is read by every login shell, .xxxrc is read by every interactive shell after reading .profile. You need to decide yourself depending on what you like to add. A good idea is to put …

  6. Why does non-interactive login bash run as "-bash" reads …

    Mar 1, 2025 · When bash is invoked as an interactive login shell, or as a non-interactive shell with the --login option, it first reads and executes commands from the file /etc/profile, if that file exists.

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

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

  9. nmcli not showing connections - Unix & Linux Stack Exchange

    May 17, 2024 · What is the OS? Is there another network management service running on the system? Have you tried adding and configuring the wireless interface via nmcli con add?

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