In bash you can use tee in combination with > /dev/null to keep stdout clean. echo "# comment" | sudo tee -a /etc/hosts > /dev/null root権限のファイルにechoコマンドで内容を追加する方法

artztartzt のブックマーク 2015/09/15 03:07

その他

このブックマークにはスターがありません。
最初のスターをつけてみよう!

sudo echo "something" >> /etc/privilegedFile doesn't work

    2024 Developer survey is here and we would like to hear from you! Take the 2024 Developer Survey

    \ コメントが サクサク読める アプリです /

    • App Storeからダウンロード
    • Google Playで手に入れよう