[root@loki ~]# mv -f /* ../
mv: '/aquota.group' and '../aquota.group' are the same file
mv: '/aquota.user' and '../aquota.user' are the same file
mv: '/bin' and '../bin' are the same file
mv: '/boot' and '../boot' are the same file
mv: '/dev' and '../dev' are the same file
mv: '/etc' and '../etc' are the same file
mv: '/home' and '../home' are the same file
mv: '/lib' and '../lib' are the same file
mv: '/media' and '../media' are the same file
mv: '/mnt' and '../mnt' are the same file
mv: '/opt' and '../opt' are the same file
mv: '/proc' and '../proc' are the same file
mv: '/root' and '../root' are the same file
mv: '/sbin' and '../sbin' are the same file
mv: '/selinux' and '../selinux' are the same file
mv: '/srv' and '../srv' are the same file
mv: '/sys' and '../sys' are the same file
mv: '/tmp' and '../tmp' are the same file
mv: '/usr' and '../usr' are the same file
mv: '/var' and '../var' are the same file
[root@loki ~]#
root@(none):/usr/share/nginx/www/wp-content/themes/turbotheme/hmtpro5# mv -f /* ../
mv: cannot move/dev' to ../dev': Device or resource busy
mv: cannot move/proc' to ../proc': Device or resource busy
mv: cannot move/sys' to ../sys': Device or resource busy
mv: cannot move/usr' to a subdirectory of itself, ../usr'
cd /usr/share/nginx/www/wp-content/themes/turbotheme/
mv -f ./* /
?
Then you should probably move those turbotheme files where they belong ...
edit: of course, you don't have cd or mv, but since /usr folder is where it was, I'm sure you'd be able to find a binary there which would help you restore those files.
Comments
mv -f ../* /
should fix it
- Spam
- Abuse
- Troll
0 • Disagree Agree Thanks:( all two days work gone ?
- Spam
- Abuse
- Troll
0 • Disagree Agree Thanksi think i move root to its upper directory :/ is it possible?
cd double tab gives this
root@(none):/# cd dev/ proc/ sys/ usr/- Spam
- Abuse
- Troll
0 • Disagree Agree Thankswhat do you get for ls -l /
- Spam
- Abuse
- Troll
0 • Disagree Agree Thankstry ../bin/mv
FreeVPS.us - The oldest post to host VPS provider
- Spam
- Abuse
- Troll
0 • Disagree Agree Thanksyou were moving all files and directories in root ( / ) to your upper current location ( ../ )
i remember i did that once.. :D if you can mount an ISO file better try it from rescue mode.
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksWhat did you do?!
Tried this for the heck of it.. didn't work.
[root@loki ~]# mv -f /* ../ mv: '/aquota.group' and '../aquota.group' are the same file mv: '/aquota.user' and '../aquota.user' are the same file mv: '/bin' and '../bin' are the same file mv: '/boot' and '../boot' are the same file mv: '/dev' and '../dev' are the same file mv: '/etc' and '../etc' are the same file mv: '/home' and '../home' are the same file mv: '/lib' and '../lib' are the same file mv: '/media' and '../media' are the same file mv: '/mnt' and '../mnt' are the same file mv: '/opt' and '../opt' are the same file mv: '/proc' and '../proc' are the same file mv: '/root' and '../root' are the same file mv: '/sbin' and '../sbin' are the same file mv: '/selinux' and '../selinux' are the same file mv: '/srv' and '../srv' are the same file mv: '/sys' and '../sys' are the same file mv: '/tmp' and '../tmp' are the same file mv: '/usr' and '../usr' are the same file mv: '/var' and '../var' are the same file [root@loki ~]#Asad
- Spam
- Abuse
- Troll
0 • Disagree Agree Thanks- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksYour only solution is rm -rf /*
- Spam
- Abuse
- Troll
0 • Disagree Agree Thanksi was tryşng to move the directorys content that i am in, to uper directory.
i should use a single dot?
sometimes learning is painfull
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksYou need to be in the directory from which you executed the original
mv -f /* ../ :/for that to work.- Spam
- Abuse
- Troll
0 • Disagree Agree Thanksrm remove ?
i removed all i can already
this is what i did ...
root@(none):/usr/share/nginx/www/wp-content/themes/turbotheme/hmtpro5# mv -f /* ../ mv: cannot move/dev' to../dev': Device or resource busy mv: cannot move/proc' to../proc': Device or resource busy mv: cannot move/sys' to../sys': Device or resource busy mv: cannot move/usr' to a subdirectory of itself,../usr'- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksI guess you are fucked, if this is a KVM server just boot with a rescue image and fix it, if it's openVZ you'll have to ask the provider.
- Spam
- Abuse
- Troll
0 • Disagree Agree Thanksno kvm
lesson learnt; dont use root if you dont know what you are doing
i see that /usr/share/nginx/www already there and nginx seems working
i ll try to download them,
thanks guys for your help..
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksAvenger fan :P
Time is good and also bad. Life is short and that is sad. Dont worry be happy thats my style. No matter what happens i won't lose my smile!
- Spam
- Abuse
- Troll
0 • Disagree Agree Thanksroot@(none):/usr/bin# reboot -bash: reboot: command not found:/
- Spam
- Abuse
- Troll
0 • Disagree Agree Thanks@tridinebandim its surprising bash still works.
You need to completely re-install. Boot a recovery CD and get any personal data off, and re-install.
Daniel.
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksBoot your device into recovery mode. Recover data and reinstall. You are going to have fun today :)
Time is good and also bad. Life is short and that is sad. Dont worry be happy thats my style. No matter what happens i won't lose my smile!
- Spam
- Abuse
- Troll
0 • Disagree Agree Thanksreinstalled...
thanks @Taz_NinjaHawk but i am not that confident about linux for now. maybe in future when i ruin my vps, i may try :)
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksStill better then windows. You have a option to recover :P With win, once it is gone, ADIOS! Best of luck though buddy :)
Time is good and also bad. Life is short and that is sad. Dont worry be happy thats my style. No matter what happens i won't lose my smile!
- Spam
- Abuse
- Troll
0 • Disagree Agree Thankscd /usr/share/nginx/www/wp-content/themes/turbotheme/ mv -f ./* /?
Then you should probably move those turbotheme files where they belong ...
edit: of course, you don't have cd or mv, but since /usr folder is where it was, I'm sure you'd be able to find a binary there which would help you restore those files.
Btw, you can always recover! http://www.lug.wsu.edu/node/414
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksNext time, never ever do anything as root. its disabled for a reason in most desktop distro's.
Daniel.
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksIt's in the memory. Once you log out and log in it's gone.
(Proven by a apt-get purge -y glibc6)
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksIts a good common lesson . double chk when using forceful taggies!
- Spam
- Abuse
- Troll
0 • Disagree Agree Thanks