about_Core_Commands — PowerShell 핵심 명령(Core Commands) 알아보기

about_Core_Commands — PowerShell 핵심 명령(Core Commands) 알아보기

이 문서는 PowerShell 프로바이더와 함께 쓰도록 특별히 설계된 cmdlet들을 한눈에 정리해 주는 안내서예요. 파일, 레지스트리, 그리고 직접 만들거나 받아온 프로바이더가 노출하는 데이터까지 — 이 cmdlet들을 알면 여러 종류의 데이터를 똑같은 방식으로 다룰 수 있게 돼요. 지금부터 하나씩 살펴볼게요.

출처: https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_core_commands

본문

간단한 설명 (Short description)

PowerShell 프로바이더와 함께 쓰도록 설계된 cmdlet 목록을 소개해요.

자세한 설명 (Long description)

PowerShell에는 PowerShell 프로바이더가 노출하는 데이터 저장소의 항목(item)을 관리하도록 설계된 cmdlet 묶음이 포함되어 있어요. 이 cmdlet들은 프로바이더가 사용할 수 있게 제공하는 여러 종류의 데이터를 모두 같은 방식으로 다룰 수 있게 해주죠. 프로바이더에 대해 더 자세히 알고 싶다면 "Get-Help about_Providers"라고 입력해 보세요.

예를 들어 Get-ChildItem cmdlet으로 파일 시스템 디렉터리의 파일을 나열할 수도 있고, 레지스트리 키 아래의 키(key)를 나열할 수도 있으며, 직접 만들거나 다운로드한 프로바이더가 노출하는 항목을 나열할 수도 있어요.

다음은 프로바이더와 함께 쓰도록 설계된 PowerShell cmdlet 목록이에요.

ChildItem cmdlets

  • Get-ChildItem

Content cmdlets

  • Add-Content
  • Clear-Content
  • Get-Content
  • Set-Content

Item cmdlets

  • Clear-Item
  • Copy-Item
  • Get-Item
  • Invoke-Item
  • Move-Item
  • New-Item
  • Remove-Item
  • Rename-Item
  • Set-Item

ItemProperty cmdlets

  • Clear-ItemProperty
  • Copy-ItemProperty
  • Get-ItemProperty
  • Move-ItemProperty
  • New-ItemProperty
  • Remove-ItemProperty
  • Rename-ItemProperty
  • Set-ItemProperty

Location cmdlets

  • Get-Location
  • Pop-Location
  • Push-Location
  • Set-Location

Path cmdlets

  • Join-Path
  • Convert-Path
  • Split-Path
  • Resolve-Path
  • Test-Path

PSDrive cmdlets

  • Get-PSDrive
  • New-PSDrive
  • Remove-PSDrive

PSProvider cmdlets

  • Get-PSProvider

특정 cmdlet에 대해 더 알고 싶을 땐 Get-Help <cmdlet-name>이라고 입력하면 돼요.

더 알아보기