Skip to content

Instantly share code, notes, and snippets.

@ytooyama
Created April 16, 2025 02:21
Show Gist options
  • Save ytooyama/02a5a2642767f9caca4c990e2f48152e to your computer and use it in GitHub Desktop.
Save ytooyama/02a5a2642767f9caca4c990e2f48152e to your computer and use it in GitHub Desktop.
ヒアドキュメントでsudoが必要なファイルに追記する方法
sudo tee -a /etc/hosts << EOF > /dev/null
127.0.0.1 hogehuga
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment