Real sys admins know this pain (rm suffers no fools) and accept the consequences of recovering from backups as pennance. No backups? Then you aren’t really a sys admin then, are you?
Next time I’m about to criticize the judgement of a video game boss for having an exposed weak point with a neon orange glow, I’ll think about a sysadmin with no backups. Stupidity adds realism.
You’re sys gamblin’
The best part is when you do something like
rm path/to/dir/*and after pressing enter you notice there is actually space before the*.And you realize that it’s taking a while to delete that small handful of files.
trash-cliis your friend.
Don’t forget the dot files and directories. Use sudo in case of trouble…
sudo rm -rf .*(Don’t actually do this, because some shells will take that to include
.and..recursively)Oh god, I never considered that
.*could theoretically match... Thanks fish for not doing that, more than likely saved my unknowing ass a couple of timesSomeone please find me an example of a real shell that does this cuz I don’t believe it.
It happened to me once. It was probably an old version of bash or possibly even just sh.
Oh god…why would you not just
cd ..andrm -rthe directory name?Because you don’t always want to delete the directory itself, to then recreate it and set the ownerships and permissions again
Fair enough. Then why not
cd ..,rm ./dir_name/*?because that does not delete hidden files in the directory
Fair enough. Why not tack on
rm ./.*as well to that list? Lol. Sorry, I’m truly just curious and not trying to be a smart alec.with that we arrive at the original problem: depending on your shell and its configuration,
..could be part of the results of the glob expansion. so at that point why bother stepping one dir level upAh I see. Very interesting! Thank you.
When your wiping recycle bin and then run that command…
TIL that unrm is a thing…
A thing as in a meme, yeah
lol it’s an imaginary command, why haven’t i known…
damn i shouldn’t comment while half asleep
US government, people
They probably dragged a shared folder in the bin on windows or something
They moved a shortcut to a folder into their recycling bin. Tracks covered
Omg they removed the UN!
shredis what you should be using if you really want to destroy a file, but I’m actually not sure that works well on all filesystems.I’m pretty sure FAT32 and NTFS leave behind partial file artifacts when you edit/append data, and especially when you physically move it around.
It just seems inevitable you’ll leave behind deleted blocks with data, which only a fulle drive wipe would guarantee removal.
Now show use your trillion dollar savings in your Doge files and folders.




