Put Back from trash from Terminal I sent a lot of files and directories from an external hard drive into the trash by mistake. All those files and directories had the same grandfather directory but not the same father directory. I can put back each item individually but can't put back when I select several items that are not sister files/directory. Note that no path has been changed since I deleted all those files and directories. Anyway, I am thinking about using Bash.

Is there a putback command in bash?
This solution works on a single file in Trash or multiple files deleted from within the same directory:

If it's not essential for you to use Terminal, you can forget all those bash, zsh, and all other typealot ways to do this. Just navigate to Trash and CMD + Backspace the files you want to put back.

If the deleted files come from different folders, then you can't use this shortcut to put them all back at the same time.