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?
Asked
Active
Viewed 150 times
-1
-
What is WINSC and what commands did you run to do this damage ? – user9517 Nov 05 '12 at 15:15
-
Do you mean WinSCP? – kernelpanic Nov 05 '12 at 15:17
1 Answers
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
- 115,471
- 20
- 215
- 297
-
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