Hi i'm new to Linux and I need to use it temporary to set up LetsEncrypt. Once complete, I needed to move the /etc/letsencrypt/live/fullchain.pem file into the root dir but i moved the file incorectly:

mv fullchain.pem /fullchain

and then it showed up in my root as red fule fullchain so :

mv fullchain fullchain.pem

and something gone totally wrong. It appears to be a shortcut. The old file is gone.

enter image description here

How can I rescue the file or get it back? Is the permission wrong? because the live folder is totally not accessible true the file browser but accessible true term with sudo -i


Your file stills there. You only changed the file's path and name since you only execute mv and not rm command. Your original file must be in /fullchain.pem.

You moved the fullchain.pem file from its original path /etc/letsencrypt/live/fullchain.pem to / that's why you can't see it any more in the main.

Just execute $ mv /fullchain.pem /etc/letsencrypt/live/

  • I don't understand how this worked. Thanks. – Kivylius Feb 4 '16 at 16:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.