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 
  • 2
Reply Report
      • 1
    • 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 ?
      • 1
    • @ImranKhan: after having searched your filesystem just in case it has been moved elesewhere I suspect you'll be reaching for your backups.

Warm tip !!!

This article is reproduced from Stack Exchange / Stack Overflow, please click

Trending Tags

Related Questions