Skip to content

Get-Command #14

@XIYO

Description

@XIYO
 Get-Command where

CommandType     Name                                               Version    Source
-----------     ----                                               -------    ------
Alias           where -> Where-Object
 Get-Command Get-Command

CommandType     Name                                               Version    Source
-----------     ----                                               -------    ------
Cmdlet          Get-Command                                        7.3.9.500  Microsoft.PowerShell.C…
  1. PowerShell의 Where-Object:

    • Where-Object는 PowerShell 스크립트 언어에서 사용되는 것으로, 객체의 필터링 및 선택에 사용됩니다. 주로 PowerShell 스크립트나 명령어에서 데이터를 필터링하거나 선택하는 데 활용됩니다.
  2. 리눅스의 where 명령어:

    • 리눅스나 유닉스 계열의 운영체제에서 where 명령어는 특정 디렉토리 내에서 파일을 검색하는데 사용됩니다. where 명령어를 사용하면 특정 파일이나 명령어의 경로를 찾을 수 있습니다.

따라서 이 두 명령어는 서로 다른 용도와 동작을 가지고 있습니다. PowerShell의 Where-Object는 데이터 필터링에 사용되며, 리눅스의 where 명령어는 파일 검색에 사용됩니다.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions