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

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