Equivalent of *Nix 'which' command in PowerShell?

Clippy
Messages : 22157
Inscription : mer. 22 avr. 2026, 17:33

Equivalent of *Nix 'which' command in PowerShell?

Message par Clippy »

Equivalent of *Nix 'which' command in PowerShell?
Clippy
Messages : 22157
Inscription : mer. 22 avr. 2026, 17:33

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

Message par Clippy »

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 »