I was going through the book "Ubuntu Certified Professional Study Guide" by Michael Jang, the following were the points given in that book
function of /etc/bash.bashrc file ?
■ It assigns a prompt, which is what you see just before the cursor at the command prompt.
■ It includes settings from /etc/bash_completion to enable command completion.
■ It configures messages associated with sudo access; for more information
Is there any other poin t that the nauthor has missed ?
Erik hahn
* Set envrionment variablas, e.g. $EDITOR
* Start things like the gpg/ssh agent.
* Generally configure the shell (completion, history settings etc.)
* Setting aliases
Michael black
I't s a place to put things that you want when a bash shell is started up. That includes the things you mention, but by merely listing things you are overlooking the overall explanation that is most correct.
David H
/etc/bash.bashrc (also just .bashrc in some distros) is the basic system wide configuration file for interactive bash shells. Anything you put in it will be activated/run whenever a new bash console is opened. You can put things like aliases and shell functions in it, for example, or use it to set environment variables, or change whatever other bash settings you want.
And of course, like many similar *nix configuration files, there's also a corresponding ~/.bashrc in each user's home directory for customizing settings for each individual user.
No comments:
Post a Comment