코딩두의 포트폴리오

PowerShell - Format 출력형식 본문

PowerShell

PowerShell - Format 출력형식

코딩두 2024. 4. 7. 02:56

출력형식

  • Format-wide: 기본속성을 출력
  • Format-List: 속성을 리스트 형태로 출력
  • Format-Table: 속성을 테이블 형식으로 출력
  • Fromat-Custom: 모든 속성과 속성들의 계층적 구조 출력

 

Get-Process 실행 시 현재 목록 확인

 

Get-Process | Format-Wide 실행 시 한 줄에 두 줄의 칼럼이 나옴

 

Get-Process | Format-Wide -column 4 실행 시 4개의 칼럼 확인

 

Get-Process | Format-List :리스트 형식으로 확인

 

Get-Process | Format-Table: 테이블 형식으로 확인

 

Get-Process -name powershell | format-table

프로세스 중 파워쉘이라는 이름을 가진 프로세스를 출력하고, 포맷 테이블 형식으로 확인하는 옵션

'PowerShell' 카테고리의 다른 글

PowerShell - Get-Command 명령  (0) 2024.04.06
PowerShell - Get-Help 명령어  (0) 2024.04.06
PowerShell - 명령어 구조  (0) 2024.04.06
PowerShell - 실행 및 환경설정  (0) 2024.04.02