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)
11886정성태5/7/201912302오류 유형: 534. mstest.exe 실행 시 "Visual Studio Enterprise is required to execute the test." 오류 [2]
11885정성태5/7/20199274오류 유형: 533. mstest.exe 실행 시 "File extension specified '.loadtest' is not a valid test extension." 오류 발생
11884정성태5/5/201912949.NET Framework: 828. C# DLL에서 Win32 C/C++처럼 dllexport 함수를 제공하는 방법 - 두 번째 이야기
11883정성태5/3/201917193.NET Framework: 827. C# - 인터넷 시간 서버로부터 받은 시간을 윈도우에 적용하는 방법파일 다운로드1
11882정성태5/2/201914160.NET Framework: 826. (번역글) .NET Internals Cookbook Part 11 - Various C# riddles파일 다운로드1
11881정성태4/28/201914401오류 유형: 532. .NET Core 프로젝트로 마이그레이션 시 "CS0579 Duplicate 'System.Reflection.AssemblyCompanyAttribute' attribute" 오류 발생
11880정성태4/25/201911112오류 유형: 531. 이벤트 로그 오류 - Task Scheduling Error: m->NextScheduledSPRetry 1547, m->NextScheduledEvent 1547
11879정성태4/24/201916386.NET Framework: 825. (번역글) .NET Internals Cookbook Part 10 - Threads, Tasks, asynchronous code and others파일 다운로드2
11878정성태4/22/201914390.NET Framework: 824. (번역글) .NET Internals Cookbook Part 9 - Finalizers, queues, card tables and other GC stuff파일 다운로드1
11877정성태4/22/201914313.NET Framework: 823. (번역글) .NET Internals Cookbook Part 8 - C# gotchas파일 다운로드1
11876정성태4/21/201914145.NET Framework: 822. (번역글) .NET Internals Cookbook Part 7 - Word tearing, locking and others파일 다운로드1
11875정성태4/21/201914537오류 유형: 530. Visual Studo에서 .NET Core 프로젝트를 열 때 "One or more errors occurred." 오류 발생
11874정성태4/20/201914522.NET Framework: 821. (번역글) .NET Internals Cookbook Part 6 - Object internals파일 다운로드1
11873정성태4/19/201913474.NET Framework: 820. (번역글) .NET Internals Cookbook Part 5 - Methods, parameters, modifiers파일 다운로드1
11872정성태4/17/201913941.NET Framework: 819. (번역글) .NET Internals Cookbook Part 4 - Type members파일 다운로드1
11871정성태4/16/201913810.NET Framework: 818. (번역글) .NET Internals Cookbook Part 3 - Initialization tricks [3]파일 다운로드1
11870정성태4/16/201911532.NET Framework: 817. Process.Start로 실행한 콘솔 프로그램의 출력 결과를 얻는 방법파일 다운로드1
11869정성태4/15/201915305.NET Framework: 816. (번역글) .NET Internals Cookbook Part 2 - GC-related things [2]파일 다운로드2
11868정성태4/15/201912996.NET Framework: 815. CER(Constrained Execution Region)이란?파일 다운로드1
11867정성태4/15/201912001.NET Framework: 814. Critical Finalizer와 SafeHandle의 사용 의미파일 다운로드1
11866정성태4/9/201915580Windows: 159. 네트워크 공유 폴더(net use)에 대한 인증 정보는 언제까지 유효할까요?
11865정성태4/9/201911328오류 유형: 529. 제어판 - C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools is not accessible.
11864정성태4/9/201910522오류 유형: 528. '...' could be '0': this does not adhere to the specification for the function '...'
11863정성태4/9/201910332디버깅 기술: 127. windbg - .NET x64 EXE의 EntryPoint
11862정성태4/7/201912394개발 환경 구성: 437. .NET EXE의 ASLR 기능을 끄는 방법
11861정성태4/6/201912167디버깅 기술: 126. windbg - .NET x86 CLR2/CLR4 EXE의 EntryPoint
... 61  62  63  64  65  66  67  68  69  [70]  71  72  73  74  75  ...