Symbolic Link: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
(Created page with "<source lang="bash"> # soft link or symbolic link for linux ln -s /opt/dev/workspaces/php_workspaces/chorke_site_webapp /var/www/html/chorke_site_webapp ls -lah /var/www/html/...")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<source lang="bash">
<source lang="bash">
# soft link or symbolic link for linux
# soft link or symbolic link for linux
ln -s /opt/dev/workspaces/php_workspaces/chorke_site_webapp /var/www/html/chorke_site_webapp
ln -s /opt/dev/workspaces/zend_workspaces/chorke_site_webapp /var/www/html/chorke_site_webapp
 
ls -lah /var/www/html/chorke_site_webapp
ls -lah /var/www/html/chorke_site_webapp
# lrwxrwxrwx. 1 root root 29 Jul 29  2019 /var/www/html/chorke_site_webapp -> /opt/dev/workspaces/php_workspaces/chorke_site_webapp
# lrwxrwxrwx. 1 root root 29 Jul 29  2019 /var/www/html/chorke_site_webapp -> /opt/dev/workspaces/zend_workspaces/chorke_site_webapp
</source>
</source>


Line 9: Line 10:
@REM soft link or symbolic link for windows
@REM soft link or symbolic link for windows
@REM start menu>find cmd>run as administrator
@REM start menu>find cmd>run as administrator
mklink /D F:\var\www\html\chorke_site_webapp E:\dev\workspaces\php_workspaces\chorke_site_webapp
mklink /D F:\var\www\html\chorke_site_webapp E:\dev\workspaces\zend_workspaces\chorke_site_webapp
@REM 07/29/2019  05:31 PM    <SYMLINKD>    chorke_site_webapp [E:\dev\workspaces\php_workspaces\chorke_site_webapp]
 
dir F:\var\www\html\chorke_site_webapp
@REM 07/29/2019  05:31 PM    <SYMLINKD>    chorke_site_webapp [E:\dev\workspaces\zend_workspaces\chorke_site_webapp]
</source>
</source>

Latest revision as of 04:30, 29 July 2019

# soft link or symbolic link for linux
ln -s /opt/dev/workspaces/zend_workspaces/chorke_site_webapp /var/www/html/chorke_site_webapp

ls -lah /var/www/html/chorke_site_webapp
# lrwxrwxrwx. 1 root root 29 Jul 29  2019 /var/www/html/chorke_site_webapp -> /opt/dev/workspaces/zend_workspaces/chorke_site_webapp
@REM soft link or symbolic link for windows
@REM start menu>find cmd>run as administrator
mklink /D F:\var\www\html\chorke_site_webapp E:\dev\workspaces\zend_workspaces\chorke_site_webapp

dir F:\var\www\html\chorke_site_webapp
@REM 07/29/2019  05:31 PM    <SYMLINKD>     chorke_site_webapp [E:\dev\workspaces\zend_workspaces\chorke_site_webapp]