Command not found for powershell
GF-Huang opened this issue · 1 comments
GF-Huang commented
joadoumie commented
Thanks for providing the feedback!
I'm going to reference @lhecker's response to a similar bit of feedback below as this follows the same structure:
mkdir is a builtin command of PowerShell, not a standalone application like it would be on UNIX/Linux. You have to write sudo powershell -c '...' or sudo pwsh -c '...' to launch PowerShell and tell it to execute your command(s).
If you were to use cmd then sudo mkdir test would work. The builtin commands of cmd are quite a bit simpler and haven't changed in decades, so sudo supports them as a "shortcut" to help cmd users.
Generally, we are tracking improving these bits with #5 so I will ref this issue there!
