← 返回命令列表

Linux command

extundelete 命令

安全

权限或系统影响较大,执行前请核对目标。

常用示例

Restore all

sudo extundelete [/dev/sdXN] --restore-all

Example

extundelete [/dev/sdXN] --restore-file [path/to/file]

Example

extundelete [/dev/sdXN] --restore-directory [path/to/directory]

Example

extundelete [/dev/sdXN] --restore-all --after [1577840400]

说明

extundelete recovers deleted files from ext3 and ext4 partitions by parsing the filesystem journal. It can restore individual files, directories, or all recoverable files. Works best when run immediately after deletion before journal wraps.

参数

--restore-all
Restore all recoverable files
--restore-file _path_
Restore specific file
--restore-directory _path_
Restore specific directory
--after _time_
Only restore files deleted after Unix timestamp
--before _time_
Only restore files deleted before timestamp

FAQ

What is the extundelete command used for?

extundelete recovers deleted files from ext3 and ext4 partitions by parsing the filesystem journal. It can restore individual files, directories, or all recoverable files. Works best when run immediately after deletion before journal wraps.

How do I run a basic extundelete example?

Run `sudo extundelete [/dev/sdXN] --restore-all` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --restore-all do in extundelete?

Restore all recoverable files