1

I used following command to delete all directories except the latest one:

rm -r ls -t | awk 'NR>1'

I accidently used the above command on wrong path and deleted many directories from that folder.

If I have to recover all files or directories deleted by this operation what should I do? Also, if I ran the above command multiple times, is it possible to recover all the files deleted in every execution of command. Thanks.

Nik
  • 11

0 Answers0