About 1,060,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. Why isn't bash reading my `~/.profile`? - Unix & Linux Stack …

    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 …

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

  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. config、option、setting这三者在程序世界里是什么区别? - 知乎

    例如蓝牙的各种应用模式原文就是Profile,A2DP Profile什么的,但翻译成了模式。 Property属性,意指实体Entity所具备的性质项目,包括但不限于Settings,还包括它的自然属性。

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

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

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

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