News How to Send Files to Trash from the Linux Command Line

unis_torvalds

Prominent
Jan 16, 2020
10
4
515
0
Thank you Toms for this practical article!

However is important to mention that the commands shown are specific to Debian (and derivatives like Ubuntu).

Otherwise you risk confusing beginners who have a different package manager with their distro.
 
May 9, 2020
1
0
10
0
The recommended way to send files to the trash from the shell is
Code:
gio trash myfile
There is nothing to install.
 

bit_user

Splendid
Ambassador
It's also worth mentioning that people can enable periodic or manual snapshots on filesystems like BTRFS and ZFS that support them. If you use snapshots, then it protects you not only from unintended deletion but also accidental modification and corruption.

As for specific instruction or guidance on snapshot usage, that's worth an article all by itself. I'm sure anyone interested can already find a couple, out there.
 

ASK THE COMMUNITY

TRENDING THREADS