Cómo recuperar archivos eliminados usando todo

Cómo recuperar archivos eliminados usando todo

¡Estaba en la carpeta equivocada y eliminé una lista de archivos Python muy importantes! ¿Cómo puedo configurar las reglas en todo para recuperarlas? y usando el sistema operativo 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

pero archivo .pypython y .jsjavascript

Respuesta1

Formost solo maneja archivos específicos como imágenes y películas.

De fábrica, Foremost no puede recuperar archivos Python o Javascript.1,2

Sin embargo, puede hacer que descubra tipos de archivos adicionales, como se explicaen esta publicación de blog.

Por ejemplo, creando un foremost.confarchivo con las siguientes entradas separadas por tabulaciones:

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

Puede buscar archivos Python con el sufijo py, distingue entre mayúsculas y minúsculas ( y), buscando hasta 100000 bytes en el encabezado y buscando la línea shebang.

información relacionada