Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get-Command #14

Open
XIYO opened this issue Oct 29, 2023 · 0 comments
Open

Get-Command #14

XIYO opened this issue Oct 29, 2023 · 0 comments
Assignees

Comments

@XIYO
Copy link
Owner

XIYO commented Oct 29, 2023

 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 명령어는 파일 검색에 사용됩니다.

@XIYO XIYO added the Windows label Oct 29, 2023
@XIYO XIYO self-assigned this Oct 29, 2023
@XIYO XIYO added Post 📜 and removed Windows labels Mar 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant