私はUbuntuの初心者です。設定ファイルの編集方法を教えてもらえますか?
これはUbuntu18.04LTSにあります。よろしくお願いします。
ベストアンサー
構成ファイルは通常、root
が所有します 。例:
$ ll /etc/default/grub
-rw-r--r-- 1 root root 6801 Jul 18 13:26 /etc/default/grub
^^ ^ ^
|| | +-- Users can only read
|| +----- Members of the group can only read
|+------- The owner can write
+-------- The owner can read
ユーザー(自分自身)が/etc/grub/default
を編集するため sudo
を使用する必要があります 力。したがって、使用する代わりに :
gedit /etc/default/grub
使用する必要があります :
sudo -H gedit /etc/default/grub
その時点で、パスワードの入力を求められます。
注: 今日の関連質問:Grubファイルは変更後に保存できません