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
정성태

... 46  47  48  [49]  50  51  52  53  54  55  56  57  58  59  60  ...
NoWriterDateCnt.TitleFile(s)
12405정성태11/8/202010462.NET Framework: 965. C# 9.0 - (14) 부분 메서드에 대한 새로운 기능(New features for partial methods)파일 다운로드1
12404정성태11/7/202010959.NET Framework: 964. C# 9.0 - (13) 모듈 이니셜라이저(Module initializers)파일 다운로드1
12403정성태11/7/202011027.NET Framework: 963. C# 9.0 - (12) foreach 루프에 대한 GetEnumerator 확장 메서드 지원(Extension GetEnumerator)파일 다운로드1
12402정성태11/7/202011605.NET Framework: 962. C# 9.0 - (11) 공변 반환 형식(Covariant return types) [1]파일 다운로드1
12401정성태11/5/202010538VS.NET IDE: 153. 닷넷 응용 프로그램에서의 "My Code" 범위와 "Enable Just My Code"의 역할 [1]
12400정성태11/5/20207575오류 유형: 679. Visual Studio - "Source Not Found" 창에 "Decompile source code" 링크가 없는 경우
12399정성태11/5/202011198.NET Framework: 961. C# 9.0 - (10) 대상으로 형식화된 조건식(Target-typed conditional expressions)파일 다운로드1
12398정성태11/4/20209683오류 유형: 678. Windows Server 2008 R2 환경에서 Powershell을 psexec로 원격 실행할 때 hang이 발생하는 문제
12397정성태11/4/20209795.NET Framework: 960. C# - 조건 연산자(?:)를 사용하는 경우 달라지는 메서드 선택 사례파일 다운로드1
12396정성태11/3/20208189VS.NET IDE: 152. Visual Studio - "Tools" / "External Tools..."에 등록된 외부 명령어에 대한 단축키 설정 방법
12395정성태11/3/20209499오류 유형: 677. SSMS로 DB 접근 시 The server principal "..." is not able to access the database "..." under the current security context.
12394정성태11/3/20207920오류 유형: 676. cacls - The Recycle Bin on ... is corrupted. Do you want to empty the Recycle Bin for this drive?
12393정성태11/3/20208394오류 유형: 675. Visual Studio - 닷넷 응용 프로그램 디버깅 시 Disassembly 창에서 BP 설정할 때 "Error while processing breakpoint." 오류
12392정성태11/2/202012527.NET Framework: 959. C# 9.0 - (9) 레코드(Records) [4]파일 다운로드1
12390정성태11/1/202010670디버깅 기술: 173. windbg - System.Configuration.ConfigurationErrorsException 예외 분석 방법
12389정성태11/1/202010556.NET Framework: 958. C# 9.0 - (8) 정적 익명 함수 (static anonymous functions)파일 다운로드1
12388정성태10/29/20209950오류 유형: 674. 어느 순간부터 닷넷 응용 프로그램 실행 시 System.Configuration.ConfigurationErrorsException 예외가 발생한다면?
12387정성태10/28/202010706.NET Framework: 957. C# - static 필드의 정보가 GC Heap에 저장될까요? [3]파일 다운로드1
12386정성태10/28/202010972Linux: 34. 사용자 정보를 함께 출력하는 리눅스의 ps 명령어 사용 방법
12385정성태10/28/20208710오류 유형: 673. openssl - req: No value provided for Subject Attribute CN, skipped
12384정성태10/27/20209957오류 유형: 672. AllowPartiallyTrustedCallers 특성이 적용된 어셈블리의 struct 멤버 메서드를 재정의하면 System.Security.VerificationException 예외 발생
12383정성태10/27/202010925.NET Framework: 956. C# 9.0 - (7) 패턴 일치 개선 사항(Pattern matching enhancements) [3]파일 다운로드1
12382정성태10/26/20208550오류 유형: 671. dotnet build - The local source '...' doesn't exist
12381정성태10/26/202010179VC++: 137. C++ stl map의 사용자 정의 타입을 key로 사용하는 방법 [1]파일 다운로드1
12380정성태10/26/20207667오류 유형: 670. Visual Studio - Squash_FailureCommitsReset
12379정성태10/21/202010638.NET Framework: 955. .NET 메서드의 Signature 바이트 코드 분석 [1]파일 다운로드2
... 46  47  48  [49]  50  51  52  53  54  55  56  57  58  59  60  ...