일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 자동화
- powershell
- 시스템자동화
- API
- EC2
- python
- 5.0
- GCP
- airflow
- tcp
- elasticsearch
- Automation
- kibana
- crawling
- Selenium
- ansible
- sso
- GIT
- ubuntu
- 8.0
- ELK
- EKS
- 데이터 분석
- Linux
- MySQL
- zabbix
- module
- DB
- AWS
- apt
Archives
- Today
- Total
Oops - IT
Linux에서 Powershell 사용하기 본문
반응형
* Linux 환경: Ubuntu 16.04
## 1
1. 설치 파일 다운로드
#wget https://github.com/PowerShell/PowerShell/releases/powershell_6.0.0-beta.4-1ubuntu1.16.04.1_amd64.deb
2. Powershell 설치를 위해 의존성 모듈 설치
#sudo apt-get install libunwind8 libicu55
3. 다운로드한 Powershell 패키지 설치
#dpkg -i [파일 경로] powershell_6.0.0-beta.4-1ubuntu1.16.04.1_amd64.deb
4. 정상 설치 후 Powershell 명령어로 Powershell 세션 오픈
#Powershell
5. Powershell 명령어 정상 출력 확인
#Get-Process
#Get-Alias
## 2
1. Curl 유틸리티 설치 (기 설치 되어 있을 경우 Skip)
#sudo apt-get install curl
2. Curl 명령어로 Public Repo GPG key를 가져와 apt-get 명령어로 추가
#sudo curl https://packages.microsoft.com/keys/microsoft.asc > MS.key apt-key add MS.key
3. apt에 Microsoft Repo 등록 후 업데이트
#curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list | sudo tee /etc/apt/source.list.d/microsoft.list
#apt-get update
4. Powershell 설치
#sudo apt-get install -y powershell
반응형
'Powershell' 카테고리의 다른 글
Get-WmiObject를 이용한 NIC 규격 구하기 (0) | 2020.11.20 |
---|---|
Findstr 사용법 (0) | 2020.10.25 |
Powershell 개체 (0) | 2020.10.15 |
자주 쓰는 성능 카운터 정리 (0) | 2020.10.15 |
Powershell 엔진 업그레이드 (0) | 2020.10.15 |