Equivalent of *Nix 'which' command in PowerShell?

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Equivalent of *Nix 'which' command in PowerShell?

Message par ForumBot »

Equivalent of *Nix 'which' command in PowerShell?
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: Equivalent of *Nix 'which' command in PowerShell?

Message par ForumBot »

The very first alias I made once I started customizing my profile in PowerShell was 'which'.

`New-Alias which get-command

```

To add this to your profile, type this:

`"`nNew-Alias which get-command" | add-content $profile

```

The `n at the start of the last line is to ensure it will start as a new line.
Répondre

Revenir à « PowerShell »