Open links in new tab
  1. What is the purpose of .bashrc and how does it work?

    255 .bashrc is a Bash shell script that Bash runs whenever it is started interactively. It initializes an interactive shell session. You can put any command in that file that you could type at the command …

  2. command line - Where is .bashrc? - Ask Ubuntu

    There is a .bashrc in every user's home folder (99.99% of the time) as well as one system-wide (which I don't know the location of in Ubuntu). The quickest way to access it is nano ~/.bashrc from a terminal …

  3. unix - What is the .bashrc file? - Super User

    Sep 30, 2009 · Unix shells when starting read the .bashrc file and execute commands written in it. What is this file and what does it execute?

  4. What is a .bashrc file and what does it do? - Ask Ubuntu

    Apr 17, 2019 · The .bashrc file itself contains a series of configurations for the terminal session. This includes setting up or enabling: colouring, completion, the shell history, command aliases and more. …

  5. Where is .bashrc file found in Linux? - Unix & Linux Stack Exchange

    Jun 24, 2015 · There is also /etc/bashrc (/etc/bash.bashrc in Debian-based Linux) which contains System wide functions and aliases. By default, this is set, even for non-interactive, non-login shells.

  6. What goes in ~/.profile and ~/.bashrc? - Ask Ubuntu

    Jun 2, 2022 · I'm having trouble wrapping my head around what belongs in ~/.profile and what belongs in ~/.bashrc. From what I've read, it seems to me that ~/.profile should be used for environment …

  7. Choosing between .bashrc, .profile, .bash_profile, etc

    Jul 29, 2014 · 0 Put everything in .bashrc and then source .bashrc from .profile From the bash man page (on OS X 10.9): When an interactive shell that is not a login shell is started, bash reads and executes …

  8. Understanding .bashrc and .bash_profile - Ask Ubuntu

    Only non-login shells run commands in /etc/bash.bashrc automatically, but Ubuntu's default /etc/profile checks if the running shell is bash (and if /etc/bash.bashrc exists) and, if so, sources …

  9. linux - What's the difference between /etc/bash.bashrc and ~/.bashrc ...

    Under Ubuntu, this file, as commented at the beginning, has to be "sourced" from the /etc/profile file. I added an alias command at the end of the /etc/bash.bashrc, and appended the command "source …

  10. What does . ~/.bashrc command do? - Unix & Linux Stack Exchange

    Feb 1, 2015 · The second line “sources” the .bashrc script; that means it loads and executes its contents in the same shell context. The result is the same as putting the contents of .bashrc in .bash_profile. …