如何在 WSL 中共享 Windows 10 的 SSH keys

Posted on Fri 30 April 2021 in Tips • Tagged with Windows Subsystem for Linux

由於 WSL 跟 Windows 是兩個獨立的 OS,但是兩個 OS 都會需要用 SSH key,雖然可以各自產生獨立的 key,但是一台機器要管理多個 key 還是 …


繼續閱讀

如何解決執行 bash script 時遇到 " '\r': command not found" 的問題

Posted on Wed 24 April 2019 in Tips • Tagged with Bash, Shell scripts, Linux, Windows Subsystem for Linux

前言

在使用WSL執行 bash script 有時會遇到像這樣的錯誤:

-bash: '\r': command not found

經過搜尋之後在stackoverflow找到解答,該錯誤訊息是因為 Windows 的 newline 符 …


繼續閱讀