μž‘μ—…μ„ μ‹œμž‘ν•˜κΈ° μœ„ν•΄ νŒŒμ›Œμ‰˜μ„ μ—΄μ—ˆλŠ”λ°, ν‰μ†Œμ™€λŠ” λ‹€λ₯Έ λ©”μ‹œμ§€κ°€ 좜λ ₯λ©λ‹ˆλ‹€.

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Try the new cross-platform PowerShell https://aka.ms/pscore6

κΆκΈˆν•΄μ„œ https://aka.ms/pscore6 링크둜 μ΄λ™ν•˜λ‹ˆ λ‹€μ–‘ν•œ λ²„μ „μ˜ PowerShell μ„€μΉ˜ Installing various versions of PowerShell νŽ˜μ΄μ§€κ°€ μ—΄λ¦½λ‹ˆλ‹€.

νŽ˜μ΄μ§€ μ•„λž˜μͺ½μ— PowerShell Core λΌλŠ” 제λͺ©μ΄ 보이고 μ•„λž˜μ™€ 같은 링크듀이 μžˆμŠ΅λ‹ˆλ‹€.

νŒŒμ›Œμ‰˜μ€ Windows μ—μ„œλ§Œ μ‚¬μš©ν•  수 μžˆμ—ˆλŠ”λ°, 이제 λ‹€λ₯Έ OSμ—μ„œλ„ νŒŒμ›Œμ‰˜μ„ μ‚¬μš©ν•  수 μžˆμŠ΅λ‹ˆλ‹€.

GitHub μ—μ„œ μ½”λ“œλ₯Ό κ³΅κ°œν•˜κ³  μžˆμŠ΅λ‹ˆλ‹€.

μ„€μΉ˜

Windows 10

GitHub μΆœμ‹œ Release νŽ˜μ΄μ§€ μ—μ„œ μ„€μΉ˜ νŒŒμΌμ„ λ‹€μš΄λ‘œλ“œν•  수 μžˆμŠ΅λ‹ˆλ‹€.

Linux

GitHub μΆœμ‹œ Release νŽ˜μ΄μ§€ μ—μ„œ μ„€μΉ˜ νŒŒμΌμ„ λ‹€μš΄λ‘œλ“œν•  수 있고, νŽΈλ¦¬ν•˜κ²Œ νŒ¨ν‚€μ§€ κ΄€λ¦¬μžλ‘œ μ„€μΉ˜ν•  수 μžˆμŠ΅λ‹ˆλ‹€.

Ubuntu, Debian μ—μ„œ

$ sudo apt-get install powershell

CentOS, RedHat μ—μ„œ

$ sudo yum install powershell

Fedora μ—μ„œ

$ sudo dnf install powershell

macOS

GitHub μΆœμ‹œ Release νŽ˜μ΄μ§€ μ—μ„œ μ„€μΉ˜ νŒŒμΌμ„ λ‹€μš΄λ‘œλ“œν•  수 있고, νŽΈλ¦¬ν•˜κ²Œ νŒ¨ν‚€μ§€ κ΄€λ¦¬μžλ‘œ μ„€μΉ˜ν•  수 μžˆμŠ΅λ‹ˆλ‹€.

$ brew cask install powershell

ARM

Windows IoT 와 Raspbian μ—μ„œ μ„€μΉ˜ν•˜λŠ” 방법이 μ„€λͺ…λ˜μ–΄ μžˆμŠ΅λ‹ˆλ‹€.

μ‹€ν–‰

μ„€μΉ˜ν•˜λ©΄μ„œ ν™˜κ²½λ³€μˆ˜ PATH 에 μ„€μΉ˜λ˜λŠ” μœ„μΉ˜κ°€ μΆ”κ°€λ˜λ―€λ‘œ 자주 μ‚¬μš©ν•˜λŠ” 터미널 μ‘μš©ν”„λ‘œκ·Έλž¨μ„ μ—΄κ³  PWSH λͺ…λ ΉμœΌλ‘œ PowerShell Core λ₯Ό μ‹€ν–‰ν•  수 μžˆμŠ΅λ‹ˆλ‹€.

μ‹œμž‘λ©”λ‰΄μ—μ„œ κ²€μƒ‰ν•˜λ©΄ PowerShell 6 으둜 찾을 수 μžˆμŠ΅λ‹ˆλ‹€.

2019 06 01 powershell core 004

μ‚¬μš©

Windows 10 μ—μ„œ μ„€μΉ˜λ₯Ό μ§„ν–‰ν•©λ‹ˆλ‹€.

GitHub μΆœμ‹œ νŽ˜μ΄μ§€ μ—μ„œ PowerShell-6.2.1-win-x64.msi νŒŒμΌμ„ λ‹€μš΄λ‘œλ“œν•˜κ³  μ‹€ν–‰ν•˜λ©΄ κ°„λ‹¨ν•˜κ²Œ μ„€μΉ˜λ©λ‹ˆλ‹€.

μ„€μΉ˜ λ§ˆλ²•μ‚¬μ—μ„œ μ•„λž˜μ™€ 같이 ν™˜κ²½λ³€μˆ˜μ— μ„€μΉ˜ 경둜 μΆ”κ°€ λ“±μ˜ ν•­λͺ©μ„ μ„ νƒν•˜λ©΄ κ°„λ‹¨ν•˜κ²Œ νŽΈλ¦¬ν•œ ν™˜κ²½μ„ ꡬ성할 수 μžˆμŠ΅λ‹ˆλ‹€.

2019 06 01 powershell core 001

μœˆλ„μš° νŒŒμ›Œμ‰˜κ³Ό μœ μ‚¬ν•œ μ•„μ΄μ½˜μ΄ μ‚¬μš©λ©λ‹ˆλ‹€.

2019 06 01 powershell core 002

터미널을 μ—΄κ³  PWSH λͺ…λ ΉμœΌλ‘œ PowerShell Core λ₯Ό μ‹€ν–‰ν•˜κ³ , PowerShell λͺ…λ ΉμœΌλ‘œ Windows PowerShell을 μ‹€ν–‰ν•  수 μžˆμŠ΅λ‹ˆλ‹€.

2019 06 01 powershell core 003

Visual Studio Code Terminal

Visual Studio Code μ—μ„œ κΈ°λ³Έ ν„°λ―Έλ„λ‘œ μ„€μ •ν•˜κΈ° μœ„ν•΄μ„œ 섀정창을 μ—΄κ³  Ctrl + , 검색창에 terminal 을 μž…λ ₯ν•œ ν›„ Terminal > Integrated > Env:Windows ν•­λͺ©μ„ μ°ΎμŠ΅λ‹ˆλ‹€.

2019 06 01 powershell core 005

μ•„λž˜μͺ½μ˜ Edit in settings.json 링크λ₯Ό ν΄λ¦­ν•΄μ„œ μ„€μ • νŒŒμΌμ„ μ—΄κ³ , terminal.integrated.shell.windows 의 값을 PowerShell Core μ‹€ν–‰νŒŒμΌμ˜ 전체 경둜둜 λ³€κ²½ν•©λ‹ˆλ‹€.

2019 06 01 powershell core 006

"terminal.integrated.shell.windows": "C:\\Program Files\\PowerShell\\6\\pwsh.exe"

이제 Visual Studio Code μ—μ„œ 터미널을 μ—΄λ©΄ Ctrl + ` ν„°λ―Έλ„μ—μ„œ PowerShell Core κ°€ μ‚¬μš©λ©λ‹ˆλ‹€.

2019 06 01 powershell core 007