Deepak
Deepak

Reputation: 229

How to retrieve deleted files in Linux CentOS

I am using Fedora CentOS 6.2 and I accidentally removed all the files contained in a folder using command rm *. All the files were text files and none of the file was opened anywhere else or had .swp . Is there any way so that I can get them back . Thanks in advance.

Upvotes: 0

Views: 5502

Answers (3)

Alex Angelico
Alex Angelico

Reputation: 4035

You can use Testdisk or foremost to recover deleted files.

Upvotes: 0

Kirby Todd
Kirby Todd

Reputation: 11556

Use rmdir to remove "empty" directories in the future. It will refuse to remove a directory with something in it.

Upvotes: 0

Friedrich
Friedrich

Reputation: 5996

Get your backups.If you don't have some, well then you probably will keep some in the future.

Upvotes: 5

Related Questions