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

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

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

  6. Fix "firefox is already running" issue in Linux

    Dec 17, 2014 · A really easy way is to just open a terminal, run firefox -P, and either delete the user profile that won't run or to just create another profile and set that as your default one.

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

  8. validity of imposing tmux on users - Unix & Linux Stack Exchange

    Dec 4, 2023 · So the reality of /etc/profile.d/tmux.sh causes tmux to run whenever a user does an ssh connection into Linux and also any open terminal window within a VNC session, and then …

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

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