-1

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?

  • What is WINSC and what commands did you run to do this damage ? – user9517 Nov 5 '12 at 15:15
  • Do you mean WinSCP? – kernelpanic Nov 5 '12 at 15:17
2

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 
  • 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. – user9517 Nov 5 '12 at 15:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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