Microsoft MVP성태의 닷넷 이야기
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 
(연관된 글이 2개 있습니다.)

2016-08-02부터 시작된 윈도우 10 1주년 업데이트에서 Bash Shell 사용

윈도우10 1주년 업데이트가 나왔습니다. 정식 버전 번호는 1607, 빌드 번호는 14393.10입니다.

현재 윈도우 메뉴의 "Settings" / "Update & Security"로 가서 "Windows Update"를 통해 설치할 수 있습니다. 일부 PC의 경우 "Check for updates"를 눌러도 신규 업데이트가 없다고 나올 텐데요. 이런 경우는 다음의 사이트를 방문해 직접 업데이트 용 EXE 파일을 다운로드 받아 진행할 수 있습니다.

Windows 10 1주년 업데이트 다운로드
; https://support.microsoft.com/ko-kr/help/12387/windows-10-update-history?ocid=update_setting_client

업데이트 한 다음 Bash Shell을 설치하고 싶다면 윈도우 메뉴의 "Settings" / "For developers"로 가서 아래와 같이 "Developer mode"를 켜야 합니다.

bash_on_windows_0.png

이 옵션이 켜져 있는 상태에서 제어판의 "Program and Features"에서 "Turn Windows features on or off" 링크를 누르면 다음과 같이 "Windows Subsystem for Linux (Beta)" 항목을 볼 수 있습니다. (만약 이 항목이 없다면 다시 재부팅해줍니다.)

bash_on_windows_1.png

선택하면 재부팅을 하게 되고, "Window Key + R"키를 눌러 "Bash"라고 입력하면 bash.exe 명령행 창이 뜨고 최초 한번 다음과 같이 설치 진행 여부를 묻습니다.

bash_on_windows_2.png

"y" 키를 누르고 다운로드가 완료되면 다음과 같이 UNIX 환경을 위한 계정 정보를 입력받게 됩니다.

-- Beta feature --
This will install Ubuntu on Windows, distributed by Canonical
and licensed under its terms available here:
https://aka.ms/uowterms

Type "y" to continue: y
Downloading from the Windows Store... 100%
Extracting filesystem, this will take a few minutes...
Please create a default UNIX user account. The username does not need to match your Windows username.
For more information visit: https://aka.ms/wslusers
Enter new UNIX username: stjeong
새 UNIX 암호 입력:
새 UNIX 암호 재입력:
passwd: password updated successfully
Installation successful!
The environment will start momentarily...
Documentation is available at:  https://aka.ms/wsldocs
stjeong@THEMYTH9:/mnt/c/Users/SeongTae Jeong$

끝입니다. 이후부터는 bash.exe를 실행하면 기존의 cmd.exe와 유사하게 창이 뜨고 곧바로 명령 실행이 가능합니다.

나머지는 더 볼 것도 없겠지요. ^^ 참고로 윈도우 운영체제의 C, D 드라이브는 각각 /mnt/c, /mnt/d 와 같은 식으로 마운트되어 있으므로 그 규칙에 맞게 접근하시면 됩니다. 예를 들어 D 드라이브의 temp 폴더로 이동하고 싶다면 다음과 같이 명령을 실행하면 됩니다.

cd /mnt/d/temp




[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]

[연관 글]






[최초 등록일: ]
[최종 수정일: 8/3/2016]

Creative Commons License
이 저작물은 크리에이티브 커먼즈 코리아 저작자표시-비영리-변경금지 2.0 대한민국 라이센스에 따라 이용하실 수 있습니다.
by SeongTae Jeong, mailto:techsharer at outlook.com

비밀번호

댓글 작성자
 



2016-08-04 06시47분
[플밍노트] Linux 서브 시스템, 윈도우 대격변의 서막
; http://jiniya.net/ng/2016/08/windows-subsystem-for-linux/
정성태
2016-08-05 03시29분
[easylogic] bash 안에서 window script(Power shell 에서 쓰던 스크립트) 같은건 못쓰겠죠?
[guest]
2016-08-05 04시32분
넵. 위의 덧글에 있는 "[플밍노트] Linux 서브 시스템, 윈도우 대격변의 서막" 내용에도 나오지만 완전 격리된 공간이므로 notepad.exe 등의 프로그램도 실행이 안됩니다.
정성태
2016-08-07 12시29분
정성태
2017-05-08 01시58분
Setting up a Shiny Development Environment within Linux on Windows 10
; https://www.hanselman.com/blog/SettingUpAShinyDevelopmentEnvironmentWithinLinuxOnWindows10.aspx
정성태
2017-10-08 06시24분
다음은 10월 17일부터 업데이트될 Windows 10 Fall Creators Update부터 바뀔 WSJ 환경에 대해 소개하고 있습니다.

Windows 10으로 시작하는 Java 개발
; https://medium.com/@rkttu/start-java-dev-with-win-10-402cb91126fd
정성태
2017-10-12 05시33분
정성태
2019-01-25 10시41분
C:> wslconfig
C:> wslconfig /l
정성태

... 61  62  63  64  65  66  67  68  69  70  71  72  [73]  74  75  ...
NoWriterDateCnt.TitleFile(s)
11811정성태2/11/201913278오류 유형: 510. 서버 운영체제에 NVIDIA GeForce Experience 실행 시 wlanapi.dll 누락 문제
11810정성태2/11/201911351.NET Framework: 808. .NET Profiler - GAC 모듈에서 GAC 비-등록 모듈을 참조하는 경우의 문제
11809정성태2/11/201912841.NET Framework: 807. ClrMD를 이용해 메모리 덤프 파일로부터 특정 인스턴스를 참조하고 있는 소유자 확인
11808정성태2/8/201913929디버깅 기술: 123. windbg - 닷넷 응용 프로그램의 메모리 누수 분석
11807정성태1/29/201912251Windows: 156. 가상 디스크의 용량을 복구 파티션으로 인해 늘리지 못하는 경우 [4]
11806정성태1/29/201911975디버깅 기술: 122. windbg - 덤프 파일로부터 PID와 환경 변수 등의 정보를 구하는 방법
11805정성태1/28/201913856.NET Framework: 806. C# - int []와 object []의 차이로 이해하는 제네릭의 필요성 [4]파일 다운로드1
11804정성태1/24/201911873Windows: 155. diskpart - remove letter 이후 재부팅 시 다시 드라이브 문자가 할당되는 경우
11803정성태1/10/201911371디버깅 기술: 121. windbg - 닷넷 Finalizer 스레드가 멈춰있는 현상
11802정성태1/7/201912764.NET Framework: 805. 두 개의 윈도우를 각각 실행하는 방법(Windows Forms, WPF)파일 다운로드1
11801정성태1/1/201913741개발 환경 구성: 427. Netsh의 네트워크 모니터링 기능 [3]
11800정성태12/28/201813044오류 유형: 509. WCF 호출 오류 메시지 - System.ServiceModel.CommunicationException: Internal Server Error
11799정성태12/19/201813836.NET Framework: 804. WPF(또는 WinForm)에서 UWP UI 구성 요소 사용하는 방법 [3]파일 다운로드1
11798정성태12/19/201813037개발 환경 구성: 426. vcpkg - "Building vcpkg.exe failed. Please ensure you have installed Visual Studio with the Desktop C++ workload and the Windows SDK for Desktop C++"
11797정성태12/19/201810408개발 환경 구성: 425. vcpkg - CMake Error: Problem with archive_write_header(): Can't create '' 빌드 오류
11796정성태12/19/201810098개발 환경 구성: 424. vcpkg - "File does not have expected hash" 오류를 무시하는 방법
11795정성태12/19/201812461Windows: 154. PowerShell - Zone 별로 DNS 레코드 유형 정보 조회 [1]
11794정성태12/16/20189925오류 유형: 508. Get-AzureWebsite : Request to a downlevel service failed.
11793정성태12/16/201811516개발 환경 구성: 423. NuGet 패키지 제작 - Native와 Managed DLL을 분리하는 방법 [1]
11792정성태12/11/201812302Graphics: 34. .NET으로 구현하는 OpenGL (11) - Per-Pixel Lighting파일 다운로드1
11791정성태12/11/201812277VS.NET IDE: 130. C/C++ 프로젝트의 시작 프로그램으로 .NET Core EXE를 지정하는 경우 닷넷 디버깅이 안 되는 문제 [1]
11790정성태12/11/201810624오류 유형: 507. Could not save daemon configuration to C:\ProgramData\Docker\config\daemon.json: Access to the path 'C:\ProgramData\Docker\config' is denied.
11789정성태12/10/201820492Windows: 153. C# - USB 장치의 연결 및 해제 알림을 위한 WM_DEVICECHANGE 메시지 처리 [2]파일 다운로드2
11788정성태12/4/201810466오류 유형: 506. SqlClient - Value was either too large or too small for an Int32.Couldn't store <2151292191> in ... Column
11787정성태11/29/201814434Graphics: 33. .NET으로 구현하는 OpenGL (9), (10) - OBJ File Format, Loading 3D Models파일 다운로드1
11786정성태11/29/201811119오류 유형: 505. OpenGL.NET 예제 실행 시 "Managed Debugging Assistant 'CallbackOnCollectedDelegate'" 예외 발생
... 61  62  63  64  65  66  67  68  69  70  71  72  [73]  74  75  ...