terminal
Remove Win10's Path from WSL
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