-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?

1 Answers1

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 
user9517
  • 114,104
  • 20
  • 206
  • 289
  • 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 05 '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 05 '12 at 15:20