this post was submitted on 19 Feb 2024
15 points (100.0% liked)

Programmer Humor

19536 readers
646 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] mox@lemmy.sdf.org 1 points 8 months ago (1 children)

Perfectly safe on Windows, too. The remove() function doesn't work on directories.

[–] aodhsishaj@lemmy.world 1 points 8 months ago (1 children)

Remove-Item -LiteralPath "C:" -Force -Recurse

[–] okamiueru@lemmy.world 0 points 8 months ago (1 children)

I'm curious. Does anyone like PowerShell, and the syntax you end up with?

[–] egonallanon@lemm.ee 1 points 8 months ago

Yeah I'm a big fan of it. People complain about the verbosity of it but I like that for readability and autocomplete makes that a non issue I find. Plus if you really want to save on typing when using it as a terminal tool you can just make aliases for all your common commands.