S
S
sha2562019-01-06 14:14:16
linux
sha256, 2019-01-06 14:14:16

Why is the symbol link (centos) not created?

Friends, hello everyone!
I'm trying to forward the mounted file through docker to the web server directory to start.
Command:
ls -s /main/pymain.py /var/www/python/
In response I get:

4 /main/pymain.py

/var/www/python/:
total 0

What does this mean? And how to create a symbolic link in a directory?
Copying a file works fine, but you yourself understand that you don’t want to transfer every change to the directory by copying.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Gendalph, 2019-01-07
@sha256

Let's start with the fact that ls is a list , it shows a list of files, but the ln - link
command is needed. Further, if the file is in a docker container, then it will not get to the host, /var/www/python and the web server must be in the same container as /main/pymain.py

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question