Solved

accidentally removed the wrong dir

Posted on 2013-05-30
1
355 Views
Last Modified: 2013-05-30
I am working on the Centos v6.4 web server where I have two dirs, one called html and other other one called html1
the html file size is about 50 GB while html1, the one I was trying to delete is just 2 GB..
for some weird reason I did "rm -rf html" but realized right after hitting enter and I clicked disconnect from shell intermediately.. I cannot just download (50 GB) dir and just compare its contents and upload the missing ones, is it possible to know if anything got deleted?
i'm browsing the website perfectly fine and I don't see anything missing..
0
Comment
Question by:XK8ER
1 Comment
 
LVL 7

Accepted Solution

by:
multimac earned 500 total points
ID: 39209221
Find out which directory was "changed" in last 24hrs, that might give you some hints:

find . -type d -mtime -1
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now