0

Say I just moved a file to trash from a file manager or using a command-line implementation such as kioclient move my_file trash:/.

Can I restore it with a single, non-interactive command?

trash-cli can restore files, but only (I believe) by selecting them interactively.

1 Answer 1

0

trashy allows this:

trash restore -fr 0 

To restore the last N files (indexes from 0 included to N excluded):

trash restore -fr 0..N 

Remove -f to get interactive confirmation:

trash restore -r 0 

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.