Editing configuration files

Bret Busby bret.busby at gmail.com
Fri Nov 23 18:34:33 UTC 2018


On 24/11/2018, Ian Bruntlett <ian.bruntlett at gmail.com> wrote:
> Hi All,
>
> What is the preferred way to edit text configuration files that require
> root access?
>
> For example, I would normally use emacs to edit /etc/default/grub
>
> TIA,
>
>
> Ian
>

Have you tried
sudo vi <filename>
?

-- 

Bret Busby
Armadale
West Australia

..............

"So once you do know what the question actually is,
 you'll know what the answer means."
- Deep Thought,
 Chapter 28 of Book 1 of
 "The Hitchhiker's Guide to the Galaxy:
 A Trilogy In Four Parts",
 written by Douglas Adams,
 published by Pan Books, 1992

....................................................



More information about the ubuntu-users mailing list