DEV Community

Discussion on: Linux commands that work in Powershell by default.

Collapse
 
darthwalsh profile image
Carl Walsh

These aliases trip me up. If I type rm -r -f * I get an error about ambiguous arguments between -force or -filter, and I need to change the flag to rm -r -fo *.

I also lost half an hour figuring out why curl was respecting the system default proxy in one terminal window but not the other. After that I turned off a bunch of aliases.

Collapse
 
bryrod profile image
Bryan Rodriguez

Did you try rm -rf <file or dir>? That’s what I usually use if I’m in PowerShell.

Collapse
 
darthwalsh profile image
Carl Walsh

I tried it; I get Remove-Item : A parameter cannot be found that matches parameter name 'rf'. The Remove-Item cmdlet doesn't have a param starting with rf... Is your rm not aliased to Remove-Item?