Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login

That’s fantastic. Too bad it’s Linux only though. Is there an alternative for other systems outside of adding a delete step first?


sort by: page size:

Tried on one of my machines. Seems to work fine. You still do the delete file step manually but that's minor. This is going to save a lot of effort on certain machines.

So wait. You can fully get rid of it using a set of shell commands? How is this not Linux?

Fantastic tool. One improvement I'd like to see is support for .Trash instead of straight out deletion.

I had to delete a lot of stuff so I turned off the 'Are you sure?' prompt.

Sure enough, 4 minutes later I fat fingered some wanted files into oblivion.


Just started working on ‘can’, an ‘rm’ replacement, that moves files to the trash instead instead of deleting them. It only works on macos right now but I was hoping to make it cross-platform. It’s not faster than ‘rm’ but hopefully saves accidental deletions. https://github.com/joshvoigts/can

It already has something similar, you can request for the deletion of a locked file on reboot.

There's apt-get purge or apt remove --purge to do those manual steps.

That's what 'stty discard' was for, but apparently Linux doesn't implement it.

Thanks, it works! (Now "Forward Delete"/Fn+Delete doesn't work, though, but I use it rarely).

Really awesome. Although I suspect some people might take advantage of the ability to delete/move anything they want. What would be the solution to this?

I already have an alternative for Windows users. Doesn't provide any data retention mechanism, but still helpful:

  $ ls -l /usr/local/bin/del
  lrwxrwxrwx 1 root root 13 Mar 18 12:46 /usr/local/bin/del -> /usr/games/sl

You can also delete your entire C:\Windows folder and on Linux you can delete /sbin -- same permissions apply.

PSA: There exists a tool called trash-cli that can be installed on most linuxes. Then you can `trash -r ./*` to send files to the trash. It won’t work for all situations but it’s fairly useful.

In the just-released version 2.1, you can just select a file and press `^X` to delete it.

Modern versions has -delete as an option.

Are these GNU find extensions? I spend a lot of time on solaris, and I don't remember seeing a delete option. Thanks for the tips though!

I'd love to have a configuration option on Linux that elevates the penalty for evicting executable pages, or just makes them non-discardable. I think it would help a lot.

thanks, i installed this. I couldn't find a way to set it to 'always delete everything from container x and never anything from container y' though.

Windows does this too, except it hides them in it's system folders, it even comes with a built in clean-up script you can run. Not a problem that is worse on *nix.

That's cool thx for the information.

I usually remove everything by hand and with Powershell scripts I got from the internet. No need anymore!

next

Legal | privacy