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)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay