A
A
Artyom2016-04-12 20:34:49
Nginx
Artyom, 2016-04-12 20:34:49

Somehow created a home folder in root, which duplicates var/www How can I remove it without damaging the contents of var/www?

I hope everything is clear from the title and I hope to get an answer.
Thank you.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Artyom, 2016-04-12
@ixley

It's strange, I re-logged in, the home folder is there, but what was in it is gone, but everything is in place in var / www

S
Strange, 2016-04-12
@Strange

It's most likely a symlink.

# file /root/home
/root/home: symbolic link to /var/www

If the last line is the same - just delete
rm /root/home

D
Defman21, 2016-04-12
@Defman21

It's most likely just a link to /var/www
Do ls -l /root/it and see if there's an arrow next to "home" with the path it refers to.
You can remove it with the usual rm.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question