How to create a symbolic link in a linux directory? - Ask Ubuntu
this question has answer here:
- how create soft or symbolic link? 6 answers
i want create symlink should point directory.
like inside directory /var/www/vhosts/ecash-staging.com/
should symlink named ecash_root
should pointing --> /var/www/vhosts/ecash_cfe
.
how possible ?
i have googled there people said there should dir ecash_root exist in /var/www/vhosts/ecash_cfe/...
not want that.
i have create symlink in /var/..../ecash-staging.com/
name ecash_root
should point /var/www/vhosts/ecash_cfe
should not ecash_root dir inside /var/www/vhosts/ecash_cfe
.
thanks
use ln
:
ln -s /var/www/vhosts/ecash_cfe /var/www/vhosts/ecash-staging.com/ecash_root
-s
stands symbolic link/var/www/vhosts/ecash_cfe
source file/var/www/vhosts/ecash-staging.com/ecash_root
link name
Comments
Post a Comment