This question already has an answer here:
I would like to know how can I delete a file and/or move it to trash with
I know where the trash located is, then I tried with this commands to move it to trash:
mv somefile /home/username/.local/share/Trash
this command work fine, but when I open trash in launcher it's still show empty. I can undo this deleted file in original location with:
mv /home/username/.local/share/Trash/somefile ~/
but if this location
/home/username/.local/share/Trash isn't for Trash then where is moved my file?
rm will permanently delete file and not send it to a trash folder and there is no flag in
man rm to delete file to trash.