Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

While i was copying some files in /opt folder through WINSC, the /opt folder become file. Can you please inform how to make this again in folder?

share|improve this question
    
What is WINSC and what commands did you run to do this damage ? –  Iain Nov 5 '12 at 15:15
    
Do you mean WinSCP? –  kernelpanic Nov 5 '12 at 15:17
add comment

1 Answer

I suspect this isn't what you want but I can't think what your problem is as I've never heard of a directory becoming a file without it being deleted and recreated as a file anyway

mv /opt /optsafe
mkdir /opt 
share|improve this answer
    
How i will return back the files which were in /opt folder, as /opt is now become a file? I was trying to copy the patches in /opt folder through WINSCP ? –  Imran Khan Nov 5 '12 at 15:17
    
@ImranKhan: after having searched your filesystem just in case it has been moved elesewhere I suspect you'll be reaching for your backups. –  Iain Nov 5 '12 at 15:20
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.