Hacker News new | ask | show | jobs
by everybodyknows 427 days ago
Consider

  mv -t /tmp FILE ...
to defer the irreversible operation until some time outside your current flow of task-directed thought. Zero-copy, therefore fast, provided you're working within the root filesystem. Recovery from /tmp is only a slight hassle (use the metadata mod time).