🖥️extundelete

➡️This is a command-line reference manual for commands and command combinations that you don’t use often enough to remember it. This cheatsheet explains the extundelete command with important options and switches using examples.

▁ ▂ ▃ ▄ ꧁ 🔴☠ COMMANDLINE-KUNGFU WITH CHEATSHEETS ☠🔴꧂▅ ▃ ▂ ▁

#  ███████╗██╗  ██╗████████╗██╗   ██╗███╗   ██╗██████╗ ███████╗██╗     ███████╗████████╗███████╗
#  ██╔════╝╚██╗██╔╝╚══██╔══╝██║   ██║████╗  ██║██╔══██╗██╔════╝██║     ██╔════╝╚══██╔══╝██╔════╝
#  █████╗   ╚███╔╝    ██║   ██║   ██║██╔██╗ ██║██║  ██║█████╗  ██║     █████╗     ██║   █████╗  
#  ██╔══╝   ██╔██╗    ██║   ██║   ██║██║╚██╗██║██║  ██║██╔══╝  ██║     ██╔══╝     ██║   ██╔══╝  
#  ███████╗██╔╝ ██╗   ██║   ╚██████╔╝██║ ╚████║██████╔╝███████╗███████╗███████╗   ██║   ███████╗
#  ╚══════╝╚═╝  ╚═╝   ╚═╝    ╚═════╝ ╚═╝  ╚═══╝╚═════╝ ╚══════╝╚══════╝╚══════╝   ╚═╝   ╚══════╝

# to recover a file in /home/SomeUserName/, assuming /home is on its own partition, run:
extundelete /dev/sda4 --restore-file SomeUserName/SomeDirectory

# Recover an entire directory
extundelete /dev/sda4 --restore-directory SomeUserName/SomeDirectory

# For advanced users, to manually recover blocks or inodes with extundelete,
# debugfs can be used to find the inode to be recovered;
# Additional inodes to recover can be listed in an unspaced, comma-separated fashion.
extundelete --restore-inode inode

# recover all deleted files from an entire partition
extundelete /dev/sda4 --restore-all
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

  █║▌│║█║▌★ KALI ★ PARROT ★ DEBIAN 🔴 PENTESTING ★ HACKING ★ █║▌│║█║▌

              ██╗ ██╗ ██████╗  ██████╗ ██╗  ██╗███████╗██████╗
             ████████╗██╔══██╗██╔═══██╗╚██╗██╔╝██╔════╝██╔══██╗
             ╚██╔═██╔╝██║  ██║██║   ██║ ╚███╔╝ █████╗  ██║  ██║
             ████████╗██║  ██║██║   ██║ ██╔██╗ ██╔══╝  ██║  ██║
             ╚██╔═██╔╝██████╔╝╚██████╔╝██╔╝ ██╗███████╗██████╔╝
              ╚═╝ ╚═╝ ╚═════╝  ╚═════╝ ╚═╝  ╚═╝╚══════╝╚═════╝

               █║▌│║█║▌ WITH COMMANDLINE-KUNGFU POWER █║▌│║█║▌

░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░