Moving all directories into a folder, shut down my linux server

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
-1
down vote

favorite












SO recently I tried moving all files in a directory into a directory within the file path I was requesting everything to move from. From the directory /srv/www/wptestsite I ran the command



sudo mv ./* /wordpress


to move everything in the current directory (including Wordpress) into wordpress.



What I think happened is that it moved everything from root into a directory wordpress. What ended up happening was that I got disconnected from the server and now I cannot ssh or ftp into the IP address. Any ideas on how to fix this?



I thought of safe boot command line ssh, reinstall OS, or safe boot



Something to get me in and fix the problem or just reset with a fresh Linux server with CentOS 7 installed.



FTP or pinging the server IP address doesn't work.



Please help, big problem here!










share|improve this question



















  • 1




    What directory were you in when you ran the mv command?
    – roaima
    Sep 22 at 16:33






  • 1




    "What I think happened is that it moved everything from root into a file wordpress". Rest assured that if wordpress was a file the command would have failed. If it was a directory though then yes, files and folders would have been moved.
    – roaima
    Sep 22 at 16:34











  • @roaima I was in /srv/www/wptestsite, and you are right wordpress IS a directory
    – GoyaKing
    Sep 22 at 16:40















up vote
-1
down vote

favorite












SO recently I tried moving all files in a directory into a directory within the file path I was requesting everything to move from. From the directory /srv/www/wptestsite I ran the command



sudo mv ./* /wordpress


to move everything in the current directory (including Wordpress) into wordpress.



What I think happened is that it moved everything from root into a directory wordpress. What ended up happening was that I got disconnected from the server and now I cannot ssh or ftp into the IP address. Any ideas on how to fix this?



I thought of safe boot command line ssh, reinstall OS, or safe boot



Something to get me in and fix the problem or just reset with a fresh Linux server with CentOS 7 installed.



FTP or pinging the server IP address doesn't work.



Please help, big problem here!










share|improve this question



















  • 1




    What directory were you in when you ran the mv command?
    – roaima
    Sep 22 at 16:33






  • 1




    "What I think happened is that it moved everything from root into a file wordpress". Rest assured that if wordpress was a file the command would have failed. If it was a directory though then yes, files and folders would have been moved.
    – roaima
    Sep 22 at 16:34











  • @roaima I was in /srv/www/wptestsite, and you are right wordpress IS a directory
    – GoyaKing
    Sep 22 at 16:40













up vote
-1
down vote

favorite









up vote
-1
down vote

favorite











SO recently I tried moving all files in a directory into a directory within the file path I was requesting everything to move from. From the directory /srv/www/wptestsite I ran the command



sudo mv ./* /wordpress


to move everything in the current directory (including Wordpress) into wordpress.



What I think happened is that it moved everything from root into a directory wordpress. What ended up happening was that I got disconnected from the server and now I cannot ssh or ftp into the IP address. Any ideas on how to fix this?



I thought of safe boot command line ssh, reinstall OS, or safe boot



Something to get me in and fix the problem or just reset with a fresh Linux server with CentOS 7 installed.



FTP or pinging the server IP address doesn't work.



Please help, big problem here!










share|improve this question















SO recently I tried moving all files in a directory into a directory within the file path I was requesting everything to move from. From the directory /srv/www/wptestsite I ran the command



sudo mv ./* /wordpress


to move everything in the current directory (including Wordpress) into wordpress.



What I think happened is that it moved everything from root into a directory wordpress. What ended up happening was that I got disconnected from the server and now I cannot ssh or ftp into the IP address. Any ideas on how to fix this?



I thought of safe boot command line ssh, reinstall OS, or safe boot



Something to get me in and fix the problem or just reset with a fresh Linux server with CentOS 7 installed.



FTP or pinging the server IP address doesn't work.



Please help, big problem here!







centos ssh wordpress






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 22 at 19:32









roaima

40.8k547111




40.8k547111










asked Sep 22 at 15:52









GoyaKing

11




11







  • 1




    What directory were you in when you ran the mv command?
    – roaima
    Sep 22 at 16:33






  • 1




    "What I think happened is that it moved everything from root into a file wordpress". Rest assured that if wordpress was a file the command would have failed. If it was a directory though then yes, files and folders would have been moved.
    – roaima
    Sep 22 at 16:34











  • @roaima I was in /srv/www/wptestsite, and you are right wordpress IS a directory
    – GoyaKing
    Sep 22 at 16:40













  • 1




    What directory were you in when you ran the mv command?
    – roaima
    Sep 22 at 16:33






  • 1




    "What I think happened is that it moved everything from root into a file wordpress". Rest assured that if wordpress was a file the command would have failed. If it was a directory though then yes, files and folders would have been moved.
    – roaima
    Sep 22 at 16:34











  • @roaima I was in /srv/www/wptestsite, and you are right wordpress IS a directory
    – GoyaKing
    Sep 22 at 16:40








1




1




What directory were you in when you ran the mv command?
– roaima
Sep 22 at 16:33




What directory were you in when you ran the mv command?
– roaima
Sep 22 at 16:33




1




1




"What I think happened is that it moved everything from root into a file wordpress". Rest assured that if wordpress was a file the command would have failed. If it was a directory though then yes, files and folders would have been moved.
– roaima
Sep 22 at 16:34





"What I think happened is that it moved everything from root into a file wordpress". Rest assured that if wordpress was a file the command would have failed. If it was a directory though then yes, files and folders would have been moved.
– roaima
Sep 22 at 16:34













@roaima I was in /srv/www/wptestsite, and you are right wordpress IS a directory
– GoyaKing
Sep 22 at 16:40





@roaima I was in /srv/www/wptestsite, and you are right wordpress IS a directory
– GoyaKing
Sep 22 at 16:40











1 Answer
1






active

oldest

votes

















up vote
0
down vote













If you ran sudo mv ./* /wordpress from the /srv/www/wptestsite directory then you might have filled up the root directory's filesystem (/).



I don't think this should have caused the system to fail to boot, but it might have caused some of the more critical services to fail to start.



Depending on what "safe boot" really means you should be able to use that to get to the filesystems and move the files from /wordpress back to /src/www/wptestsite. I would not recommend a reinstallation of the OS.






share|improve this answer


















  • 1




    Of course, if OP actually typed sudo mv /* /wordpress (or even sudo mv . /* /wordpress), that would explain a broken system.
    – G-Man
    Sep 25 at 2:31










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f470726%2fmoving-all-directories-into-a-folder-shut-down-my-linux-server%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote













If you ran sudo mv ./* /wordpress from the /srv/www/wptestsite directory then you might have filled up the root directory's filesystem (/).



I don't think this should have caused the system to fail to boot, but it might have caused some of the more critical services to fail to start.



Depending on what "safe boot" really means you should be able to use that to get to the filesystems and move the files from /wordpress back to /src/www/wptestsite. I would not recommend a reinstallation of the OS.






share|improve this answer


















  • 1




    Of course, if OP actually typed sudo mv /* /wordpress (or even sudo mv . /* /wordpress), that would explain a broken system.
    – G-Man
    Sep 25 at 2:31














up vote
0
down vote













If you ran sudo mv ./* /wordpress from the /srv/www/wptestsite directory then you might have filled up the root directory's filesystem (/).



I don't think this should have caused the system to fail to boot, but it might have caused some of the more critical services to fail to start.



Depending on what "safe boot" really means you should be able to use that to get to the filesystems and move the files from /wordpress back to /src/www/wptestsite. I would not recommend a reinstallation of the OS.






share|improve this answer


















  • 1




    Of course, if OP actually typed sudo mv /* /wordpress (or even sudo mv . /* /wordpress), that would explain a broken system.
    – G-Man
    Sep 25 at 2:31












up vote
0
down vote










up vote
0
down vote









If you ran sudo mv ./* /wordpress from the /srv/www/wptestsite directory then you might have filled up the root directory's filesystem (/).



I don't think this should have caused the system to fail to boot, but it might have caused some of the more critical services to fail to start.



Depending on what "safe boot" really means you should be able to use that to get to the filesystems and move the files from /wordpress back to /src/www/wptestsite. I would not recommend a reinstallation of the OS.






share|improve this answer














If you ran sudo mv ./* /wordpress from the /srv/www/wptestsite directory then you might have filled up the root directory's filesystem (/).



I don't think this should have caused the system to fail to boot, but it might have caused some of the more critical services to fail to start.



Depending on what "safe boot" really means you should be able to use that to get to the filesystems and move the files from /wordpress back to /src/www/wptestsite. I would not recommend a reinstallation of the OS.







share|improve this answer














share|improve this answer



share|improve this answer








edited Sep 22 at 19:53

























answered Sep 22 at 19:36









roaima

40.8k547111




40.8k547111







  • 1




    Of course, if OP actually typed sudo mv /* /wordpress (or even sudo mv . /* /wordpress), that would explain a broken system.
    – G-Man
    Sep 25 at 2:31












  • 1




    Of course, if OP actually typed sudo mv /* /wordpress (or even sudo mv . /* /wordpress), that would explain a broken system.
    – G-Man
    Sep 25 at 2:31







1




1




Of course, if OP actually typed sudo mv /* /wordpress (or even sudo mv . /* /wordpress), that would explain a broken system.
– G-Man
Sep 25 at 2:31




Of course, if OP actually typed sudo mv /* /wordpress (or even sudo mv . /* /wordpress), that would explain a broken system.
– G-Man
Sep 25 at 2:31

















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f470726%2fmoving-all-directories-into-a-folder-shut-down-my-linux-server%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay