CLI tool to safely remove any file and directory by putting them in the trash
Move any file or directory in the trash in a clever and safe way when wanting to remove them. If a file or folder with the same name already exist in the trash, the file or folder to be removed will be renamed with the date before to be moved to the trash (fname + "%Y_%m_%d-%H_%M_%S").
with pip:
sudo pip3 install trashf
with yay:
yay -a trashf
with yaourt:
yaourt -a trashf
python >= 3
trashf / rt [F_PATH_01 F_PATH_02 ...] options: -h, --help show this help message and exit
For help:
trashf -h
or
rt --help
move in the trash ($HOME/.local/share/Trash/files) files and folders:
trashf titi/ toto.jpg