리눅스에 PowerShell 설치하기

좌충우돌·2020년 8월 25일
0

CentOS7에 PowerShell을 설치


1. Microsoft PowerShell 리포지토리를 가져옵니다.

curl https://packages.microsoft.com/config/rhel/7/prod.repo > /etc/yum.repos.d/microsoft.repo

2. yum으로 PowerShell을 설치합니다.

yum -y install powershell

3. PowerShell을 실행합니다.

# pwsh

4. 아래와 같이 PowerShell 최신 버전이 설치되었습니다.

PowerShell 7.0.3
Copyright (c) Microsoft Corporation. All rights reserved.

https://aka.ms/powershell
Type 'help' to get help.

PS /root>

5. 텍스트 파일을 하나 만들어 봅니다.

PS /root> New-Item -Path test.txt 

    Directory: /home/sigongweb

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
-----           8/25/2020  9:40 AM              0 test.tx

profile
좌충우돌 회사생활

0개의 댓글