Where is .bashrc?

I really feel foolish asking, yet I can not appear to locate the response to this anywhere. I'm attempting to adhere to these instructions to modify my bash punctual, yet there is no .bashrc in either my customer directory site (~/.bashrc), or in my residence directory site, or generally documents system directory site.

There is no .bashrc in /etc/ (there is a bash.bashrc, nonetheless).

Do I create a .bashrc documents in my customer or residence directory site? Exists a much better, extra current set of guidelines for changing the bash motivate?

2022-07-16 17:32:07
Source Share
Answers: 3

Don't neglect it is a surprise documents inside your residence directory site (you would certainly not be the first to do a ls -l and also assuming it is not there).

Do a:

ls -la ~/ | more

There need to be a .bashrc on the first web page. Otherwise simply create it with:

vi ~/.bashrc

and also include the lines you require to add right into it.

Approvals of my .bashrc are:

-rw-r--r--  1 discworld discworld  3330 Mar 10 16:03 .bashrc

(chmod 644 .bashrc to make it rw r r).

2022-07-16 19:15:28

There is a.bashrc in every customer is residence folder (99.99% of the moment) along with one system - vast (which I do not recognize the area of in Ubuntu).

The quickest means to accessibility it is nano ~/.bashrc from an incurable (change nano with whatever you such as to make use of).

If this is absent in a customer is residence folder the system - vast .bashrc is made use of as a contingency as it is filled prior to the customer is documents. You can merely replicate and also paste it (with origin approvals certainly), yet a .bashrc is not totally crucial (it might be called for to make points job. I have not figured out) at a customer degree as it primarily bypasses the system - vast one with customer - details tweaks. You can write your very own however.

The major parts for that customers might fine-tune are PS1 (the Bash punctual defaults to present [email protected]:pwd $) and also pen names along with establishing a shade punctual and also possibly PS2 (active state message).

2022-07-16 19:15:25

It is concealed as a result of the '.' it begins with.

checklist it with

ls -al

or enable "show concealed files" under the sight food selection in nautilus (Ctrl - H will certainly additionally suffice).

You can modify it with your favored full-screen editor from your residence directory site as an example


to head to your residence directory site then:

emacs .bashrc

2022-07-16 18:27:06