You are not logged in.
Pages: 1
I'm connecting to an external drive that was part of Windows (/run/media/neo/SAMSUNG/) and trying to delete more than one file.
Hundreds of infected file names look like this...
-!RecOveR!-orcji++.Htm
-!RecOveR!-pdkgr++.Txt
How do I issue a command to search for the above file names and delete them?
Offline
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
Try the find command
find path -name \-\!RecOveR\!\-\*
where path is the root directory that contains the files. If that creates a list of said files, then redirect the output to a file using >
find path -name \-\!RecOveR\!\-\* > foo
Audit foo carefully. Then do rm < foo But be carefull. This is not a perfect solution and the file names could need some escaping of characters.
Edit: Snaked by Graysky
Last edited by ewaller (2016-04-24 15:18:17)
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Thank you, ewaller for your quick explanation
This is what I've done so far and the foo list shows what I'm looking for.
find /run/media/neo/SAMSUNG/ -name \-\!RecOveR\!\-\* > foo
Now, how do I correctly delete those files? Just want to hear from you before I do anything.
Last edited by MrRoberts (2016-04-24 15:43:58)
Offline
Managed to find and delete those files successfully.
Thanks again, ewaller
Offline
Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.
Offline
Pages: 1