以下の内容はhttps://anton0825.hatenablog.com/entry/20140906/1413785987より取得しました。


sudo echo "append" >> /etc/environmentのようにファイルに文字列を追加しようとするとPermission deniedになる

この場合、以下のようにすると文字列を追加できる。

sudo bash -c "echo 'test' >> /etc/file"

sudo bash -cをpipeの後のコマンドもsudo権限で実行されるのか。なるほど。
参考:linux - Permission denied when trying to append a file to a root owned file with sudo - Stack Overflow




以上の内容はhttps://anton0825.hatenablog.com/entry/20140906/1413785987より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14