Como recuperar arquivos excluídos usando o principal

Como recuperar arquivos excluídos usando o principal

Eu estava na pasta errada e excluí uma lista de arquivos python muito importantes! Como posso configurar as regras principalmente para recuperá-las? e usando o sistema operacional Debian

/etc/foremost.conf

 CONFIGURATION FILE
              The configuration file is used to control what types  of
              files  foremost  searches  for.  A  sample configuration
              file, foremost.conf, is included with this distribution.
              For each file type, the configuration file describes the
              file’s extension, whether the header and footer are case
              sensitive,  the  maximum  file  size, and the header and
              footer for the file. The footer field is  optional,  but
              header, size, case sensitivity, and extension are not!

              Any  line  that begins with a pound sign is considered a
              comment and ignored. Thus, to skip a file type just  put
              a pound sign at the beginning of that line

              Headers and footers are decoded before use. To specify a
              value in hexadecimal use \x[0-f][0-f], and for octal use
              \[1-9][1-9][1-9].   Spaces  can  be  represented  by \s.
              Example: "\x4F\123\I\sCCI" decodes to "OSI CCI".

              To match any single character (aka a wildcard) use a  ?.
              If you need to search for the ? character, you will need
              to change the wildcard line *and*  every  occurrence  of
              the old wildcard character in the configuration file. Do
              not forget those h

mas arquivo .pypython e .jsjavascript

Responder1

Acima de tudo, lida apenas com arquivos específicos, como imagens e filmes.

Imediatamente, o Foremost não pode recuperar arquivos Python ou Javascript.1,2

No entanto, você pode descobrir tipos de arquivos adicionais, conforme explicadonesta postagem do blog.

Por exemplo, criando um foremost.confarquivo com as seguintes entradas separadas por tabulações:

py  y   100000     #!/usr/bin/env\spython3

Você pode pesquisar arquivos Python com o sufixo py, diferenciando maiúsculas de minúsculas ( y), procurando até 100.000 bytes no cabeçalho e pesquisando a linha shebang.

informação relacionada