Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 108588  / 2 Years ago, sat, may 14, 2022, 10:27:23

I need to do change a filename and copy a file to the folder /etc/apt, but the folder is locked. How do I unlock it?


More From » permissions

 Answers
4

Use the sudo command to gain root access. For example:



sudo -H /bin/bash
cd /etc/apt
do your editing of files
exit


Good practice is to save a copy of the original files (e.g. Adding a .orig suffix), before editing.


[#30461] Monday, May 16, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
jectedrin

Total Points: 491
Total Questions: 105
Total Answers: 111

Location: Netherlands
Member since Mon, Jun 7, 2021
3 Years ago
;