Maq Posted September 16, 2008 Share Posted September 16, 2008 I want to map one folder with a bunch of sub-dirs/files to another folder that is a couple directories deeper. What's the command/syntax for this? Quote Link to comment https://forums.phpfreaks.com/topic/124528-solved-mapping-folders/ Share on other sites More sharing options...
Maq Posted September 16, 2008 Author Share Posted September 16, 2008 I used this code: ln -s /usr/local/awstats-6.8 /usr/local/websites/www.xxxxxxx.com/xxxxxxx/awstats-6.8 And it produced this output: You have new mail in /var/spool/mail/root Is this correct? Quote Link to comment https://forums.phpfreaks.com/topic/124528-solved-mapping-folders/#findComment-643096 Share on other sites More sharing options...
trq Posted September 16, 2008 Share Posted September 16, 2008 ln wont produce any output on success, the actual message you are recieving means you have mail. Quote Link to comment https://forums.phpfreaks.com/topic/124528-solved-mapping-folders/#findComment-643349 Share on other sites More sharing options...
steviewdr Posted September 17, 2008 Share Posted September 17, 2008 The correct code is: ln -s /path/to/source /path/to/destination -steve Quote Link to comment https://forums.phpfreaks.com/topic/124528-solved-mapping-folders/#findComment-643690 Share on other sites More sharing options...
Maq Posted September 17, 2008 Author Share Posted September 17, 2008 Then I have the correct syntax for this, thanks! Quote Link to comment https://forums.phpfreaks.com/topic/124528-solved-mapping-folders/#findComment-643704 Share on other sites More sharing options...
Maq Posted September 19, 2008 Author Share Posted September 19, 2008 Sorry to resurrect this topic, but shouldn't the data in the destination folder be viewable and the same as the source? Quote Link to comment https://forums.phpfreaks.com/topic/124528-solved-mapping-folders/#findComment-645745 Share on other sites More sharing options...
steviewdr Posted September 19, 2008 Share Posted September 19, 2008 ln -s /path/to/source /path/to/destination ls /path/to/source ls /path/to/destination Both of the above lines should show the same output. Could you do the following to test things? mkdir /var/tmp/test1 touch /var/tmp/test1/file1 ls /var/tmp/test1 ln -s /var/tmp/test1 /var/tmp/test2 ls /var/tmp/test2 -steve Quote Link to comment https://forums.phpfreaks.com/topic/124528-solved-mapping-folders/#findComment-645921 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.