Hacker News new | ask | show | jobs
by emondi 2654 days ago
I move to /tmp and it gets deleted on next reboot.
1 comments

/tmp is a ramdisk on some systems, which makes this particular approach a very risky endeavor to use as a global replacement for ‘rm’ as the OP suggests.
Sure, also it works for me because it is on a system that is frequently turned off. If it would have to stay on for a long time it would fill /tmp with garbage.
I meant to warn others that, for example, “del foo.iso” could fail due to OOM. As long as they understand that, your use case will work fine for them.