DEV Community

Max Pixel
Max Pixel

Posted on • Edited on

pwsh saved me from unix

PS /home/max> rm ./DuetSoftwareFramework/
/usr/bin/rm: cannot remove './DuetSoftwareFramework/': Is a directory
PS /home/max> rmdir ./DuetSoftwareFramework/
/usr/bin/rmdir: failed to remove './DuetSoftwareFramework/': Not a directory
Enter fullscreen mode Exit fullscreen mode

Thankfully, I have a competent modern shell to save me from this archaic nonsense.

PS /home/max> Remove-Item ./DuetSoftwareFramework/
Enter fullscreen mode Exit fullscreen mode

Remove-Item succeeded where both rm and rmdir failed. And for reference, ri is an alias for Remove-Item.

Top comments (0)