About 1,080,000 results
Open links in new tab
  1. What is the difference between ~/.profile and ~/.bash_profile?

    Feb 27, 2019 · The .profile was the original profile configuration for the Bourne shell (a.k.a., sh). bash, being a Bourne compatible shell will read and use it. The .bash_profile on the other …

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

    What about appending lines to profile.local? Is this acceptable vs. creating scripts in the profile.d folder?

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

  4. Can systemd start a user service after loading `.profile`?

    Apr 5, 2023 · Note that systemctl --user show-environment gives the correct path, so that executing systemctl restart --user emacs resolves the situation for the current session. Is there …

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

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

  7. openSuse /etc/profile.local file does not exist

    3 The /etc/profile.local file used to be the location to make system specific changes that would not be overwritten when /etc/profile would get an update. Your system might still source the file if it …

  8. Change shell from ksh to bash and change prompt in .profile

    Sep 8, 2016 · Change shell from ksh to bash and change prompt in .profile Ask Question Asked 9 years, 2 months ago Modified 9 years, 2 months ago

  9. Why does sourcing a script in .profile not work?

    Jul 18, 2018 · Because .profile is run only for a non-interactive login shell, starting a terminal session does not run it. Although the script is sourced at login by .profile, unlike PATH …

  10. Adding to profile.local in Ubuntu? - Unix & Linux Stack Exchange

    Get the same problem and didn't find anywhere this simple solution. After creating /etc/profile.local file by adding custom commands You should add next string in user .profile …