$ 인용1 (WSL2 사용 가능 여부 확인): https://gaesae.com/161
$ 인용2 (WSL2의 설치 방법 요약): https://www.lainyzine.com/ko/article/how-to-install-wsl2-and-use-linux-on-windows-10/
$ 인용3 (MS Docs): https://docs.microsoft.com/ko-kr/windows/wsl/install#step-4---download-the-linux-kernel-update-package
& 인용4 (제어판 설정): https://webdir.tistory.com/541
$ Ubuntu 18.04를 기준으로 설명
1. Microsoft Store 실행 후 Ubuntu 18.04 앱 검색
2. 앱 다운로드
3. 최초실행 후 UNIX 계정 생성
$ 인용: https://docs.microsoft.com/ko-kr/windows/wsl/tutorials/gui-apps
출처: https://dongle94.github.io/windows/windows-wsl-path-change/
wsl --export ${내보내기할 이미지 이름} ${내보내기할 경로 (*.tar)}
#e.g.) wsl --export Ubuntu-18.04 D:\ubuntu-18-04.tar
출처: https://dongle94.github.io/windows/windows-wsl-path-change/
wsl --import ${사용하고 싶은 아무 이미지 이름} ${설치할 경로} ${가져올 파일 경로 (*.tar)}
#e.g.) wsl --import MyUbuntu-18.04 D:\wsl\ubuntu-18-04\ D:\ubuntu-18-04.tar
[user]
default=${사용자 명}
wsl --unregister ${삭제하고 싶은 이미지 이름}
명령어 | 기능 |
---|---|
wsl --list --all | 모든 이미지 출력 |
wsl --set-default ${이미지 이름} | 기본 이미지 지정(lsb_release -a으로 맞는 버전인지 확인) |