Created
April 16, 2025 02:21
-
-
Save ytooyama/02a5a2642767f9caca4c990e2f48152e to your computer and use it in GitHub Desktop.
ヒアドキュメントでsudoが必要なファイルに追記する方法
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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