Moving all directories into a folder, shut down my linux server
Clash 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 ping
ing the server IP address doesn't work.
Please help, big problem here!
centos ssh wordpress
add a comment |Â
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 ping
ing the server IP address doesn't work.
Please help, big problem here!
centos ssh wordpress
1
What directory were you in when you ran themv
command?
â roaima
Sep 22 at 16:33
1
"What I think happened is that it moved everything from root into a filewordpress
". Rest assured that ifwordpress
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
add a comment |Â
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 ping
ing the server IP address doesn't work.
Please help, big problem here!
centos ssh wordpress
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 ping
ing the server IP address doesn't work.
Please help, big problem here!
centos ssh wordpress
centos ssh wordpress
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 themv
command?
â roaima
Sep 22 at 16:33
1
"What I think happened is that it moved everything from root into a filewordpress
". Rest assured that ifwordpress
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
add a comment |Â
1
What directory were you in when you ran themv
command?
â roaima
Sep 22 at 16:33
1
"What I think happened is that it moved everything from root into a filewordpress
". Rest assured that ifwordpress
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
add a comment |Â
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.
1
Of course, if OP actually typedsudoâ¯mvâ¯/*â¯/wordpress
(or evensudoâ¯mvâ¯.â¯/*â¯/wordpress
), that would explain a broken system.
â G-Man
Sep 25 at 2:31
add a comment |Â
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.
1
Of course, if OP actually typedsudoâ¯mvâ¯/*â¯/wordpress
(or evensudoâ¯mvâ¯.â¯/*â¯/wordpress
), that would explain a broken system.
â G-Man
Sep 25 at 2:31
add a comment |Â
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.
1
Of course, if OP actually typedsudoâ¯mvâ¯/*â¯/wordpress
(or evensudoâ¯mvâ¯.â¯/*â¯/wordpress
), that would explain a broken system.
â G-Man
Sep 25 at 2:31
add a comment |Â
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.
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.
edited Sep 22 at 19:53
answered Sep 22 at 19:36
roaima
40.8k547111
40.8k547111
1
Of course, if OP actually typedsudoâ¯mvâ¯/*â¯/wordpress
(or evensudoâ¯mvâ¯.â¯/*â¯/wordpress
), that would explain a broken system.
â G-Man
Sep 25 at 2:31
add a comment |Â
1
Of course, if OP actually typedsudoâ¯mvâ¯/*â¯/wordpress
(or evensudoâ¯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
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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 ifwordpress
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