Forrest logo
back to the extundelete tool

extundelete:tldr:5d593

extundelete: Restore a directory from a path relative to root (Do not start the path with `/`).
$ extundelete ${-dev-sdXN} --restore-directory ${path-to-directory}
try on your machine

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:

  1. extundelete: This is the name of the tool or command being executed.

  2. ${-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.

  3. --restore-directory: This option specifies that you want to restore files from a specific directory.

  4. ${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.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the extundelete tool