Wednesday, April 24, 2024
 Popular · Latest · Hot · Upcoming
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 61036  / 2 Years ago, tue, may 3, 2022, 3:56:32

Trying to modify /etc/bash.bashrc I get an error:



$ echo "my edit" >> /etc/bash.bashrc
bash: /etc/bash.bashrc: Permission denied


ls -ll /etc/bash.bashrc shows:



-rw-r--r-- 1 root root 1975 2011-05-18 19:54 /etc/bash.bashrc


How could I modify /etc/bash.bashrc ?


More From » bash

 Answers
4

You need superuser permissions to edit the file.



To become the superuser, type in sudo -s then enter your password. After you log in, then try your command, and it will work.


[#42494] Tuesday, May 3, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ainlyyor

Total Points: 210
Total Questions: 129
Total Answers: 116

Location: Barbados
Member since Sun, Nov 27, 2022
1 Year ago
;