How to create a symbolic link in a linux directory? - Ask Ubuntu


this question has answer here:

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

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User