상세 컨텐츠

본문 제목

Remove Win10's Path from WSL

terminal

by Riella 2020. 8. 10. 15:13

본문

728x90

https://stackoverflow.com/questions/51336147/how-to-remove-the-win10s-path-from-wsl

 

Go to .bashrc file

cd nano ~/.bashrc

Add this code to at the end of .bashrc file

PATH=$(/usr/bin/printenv PATH | /usr/bin/perl -ne 'print join(":", grep { !/\/mnt\/[a-z]/ } split(/:/));')

Then restart the bash shell and see if $PATH has been changed.

echo $PATH

 

관련글 더보기

댓글 영역