Install safecat by entering the following commands in the terminal:
sudo apt update sudo apt install safecat
Description:
Safely copy stdin to a file
Safecat is a program which implements Daniel Bernstein's maildir algorithm to copy stdin safely to a file in a specified directory. It can be used to write mail messages to a qmail-style maildir, or to write data to a "spool" directory reliably.
Homepage: http://pobox.com/~lbudney/linux/software/safecat.html
Version: 1.13-3
Section: universe/utils