뚜벅

wsl2 에서 현재 폴더 위치 찾기 본문

개발 관련

wsl2 에서 현재 폴더 위치 찾기

초코맛젤리 2022. 7. 20. 21:56

sourcetree에서 작업 경로 추가하기 위해 wsl2에서 현재 폴더 위치를 찾는법 입니다.

echo 'alias explorer="explorer.exe ."' >> ~/.bashrc
source ~/.bashrc

👇

explorer 

👇

아래와 같이 해당 파일 위치의 폴더가 열립니다!

\\wsl$\Ubuntu-20.04\home\lsh\typescript 

 

 

 

 

 

 

 

참조 링크: https://superuser.com/questions/1338991/how-to-open-windows-explorer-from-current-working-directory-of-wsl-shell