Wednesday, May 15, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 4366  / 3 Years ago, wed, september 15, 2021, 10:32:25

I try to access .bashrc by typing ~/.bashrc on my terminal. I am connecting to a remote server via ssh. I get an access denied message. I have no problems logging in, just the access denied message for that file. I need to edit it to load a compiler. How do I do that? I have very recently started using Xubuntu and ssh, so I would appreciate an easy to follow answer.


More From » xubuntu

 Answers
4

If you want to load environmental variables from .bashrc, you can use



source ~/.bashrc


If for some reason you want to execute it, you have to change permissions first:



chmod u+x ~/.bashrc


After that, you can execute it with



~/.bashrc


However, it doesn't do that much, as it only initializes your shell options.


[#27099] Friday, September 17, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ndaavi

Total Points: 169
Total Questions: 116
Total Answers: 113

Location: Falkland Islands
Member since Wed, Dec 23, 2020
3 Years ago
ndaavi questions
Tue, Apr 18, 23, 02:18, 1 Year ago
Wed, Jul 7, 21, 21:29, 3 Years ago
Wed, Jun 8, 22, 20:15, 2 Years ago
Tue, Aug 23, 22, 11:51, 2 Years ago
;