extundelete:tldr:5d593
This command is used to recover deleted files from a specific partition on a storage device using the extundelete tool.
Let's break down the command:
-
extundelete
: This is the name of the tool or command being executed. -
${-dev-sdXN}
: This is a placeholder for the device and partition from which you want to recover files. You need to replace-dev-sdXN
with the actual device and partition identifier. For example, if you want to recover files from/dev/sdb1
, you would replace${-dev-sdXN}
with/dev/sdb1
. -
--restore-directory
: This option specifies that you want to restore files from a specific directory. -
${path-to-directory}
: Replace${path-to-directory}
with the actual path to the directory from which you want to restore files. This could be something like/home/user/deleted_files/
.
To use this command, you need to replace the placeholders with the appropriate values for your system. For example, a complete command could look like this:
extundelete /dev/sdb1 --restore-directory /home/user/deleted_files/
This would try to recover deleted files from the /dev/sdb1
partition and restore them to the /home/user/deleted_files/
directory.