So in a merry mood last night, I deleted an important shell script from my system. I mistook it for something else and figured it wasn't needed. I am trying to recover it.
I have tried
'foremost'. However, the problem that I am facing is that both do not provide me an option of specifying a '.sh' file type to recover. In both, we need to specify what type of files to recover (JPEG, GIF, DOC etc). If no file type is specified in
scalpel, it doesn't work. And
Foremost starts recovering every file type if nothing is specified, none of which is the '.sh' file type that I'm looking for.
My question is: How can I recover a specific '.sh' file type from a specific folder on my root partition (instead of having to scan the whole partition when I know where the file was deleted from)?