[WSL] Windows Subsystem for Linux update/export/import

1. 현재 설치된 subsystem 목록 확인

wsl --list

 

2. 현재 설치된 버젼 확인

wsl --status

 

3. Update 실행

wsl --update

 

4. Export 하기

--export <Distro> <FileName> [Options]

wsl --export Ubuntu ubuntu_export.tar

 

5. Import하기

 --import <Distro> <InstallLocation> <FileName> [Options]

Export한 시스템을 설치할 경로로 이동 후 tar 파일을 해당 경로에 복사해서 아래 커맨드 실행

wsl --import Ubuntu . ubuntu_export.tar