Created
December 16, 2021 10:34
-
-
Save shikishima/3e363308852c58b0c0d862a392da2809 to your computer and use it in GitHub Desktop.
cmdからWSLのリダイレクト処理をワンライナーで呼ぶ
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
| REM 上手くいく | |
| wsl sh -c "echo 'nameserver 8.8.8.8' > /etc/resolv.conf" | |
| REM これは失敗する | |
| wsl echo 'nameserver 8.8.8.8' > /etc/resolv.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment