File moved while being written to, write continues, how is that possible?

Karl Auer kauer at biplane.com.au
Wed Mar 24 12:21:15 UTC 2021


On Wed, 2021-03-24 at 12:27 +0100, Bo Berglund wrote:
> No loss really happened!
> Amazing! Cheers for Linux!

:-)

If you really want to protect yourself, look at the gio command. Use
"gio remove" to permanently delete files, use "gio trash" to put them
in the "trash can", and so on. "man gio" for more information.

gio also has the interesting property that it works on any filesystem,
including network filesystems without mount points, so you can do
things like "gio list smb://my_nas/home"

You could try using the "alias" command (or even scripts) to set up
safer commands for yourself (be careful assuming aliases exist inside
scripts though).

Or use Nautilus (or other file manager) as these generally have
features that will protect you, such as using "trash" by default and
requiring a conscious choice to permanently delete things.

Regards, K.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)
http://www.biplane.com.au/kauer

GPG fingerprint: 2561 E9EC D868 E73C 8AF1 49CF EE50 4B1D CCA1 5170
Old fingerprint: 8D08 9CAA 649A AFEF E862 062A 2E97 42D4 A2A0 616D







More information about the ubuntu-users mailing list