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

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

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

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

  7. New tmux sessions do not source bashrc file

    Nov 2, 2016 · Summary When I create a new tmux session, my prompt pulls from a default bash configuration and I have to manually run source ~/.bashrc for my customized prompt. Analysis …

  8. what is apparmor "profile_replace" log message

    Sep 15, 2015 · It means the AppArmor profile affecting the program /usr/sbin/nmbd has been removed ("unconfined") using the apparmor_parser tool. This means that program will run …

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

  10. How to write a shell script that gets executed on login?

    Jul 25, 2015 · The solution would vary depending on what "log in" actually means. If it means "starting a login shell (in a terminal, for example)", then most of the answers below would help, …