OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

> How To Symlink Directories?
Capn_Fish
post Aug 14 2007, 07:10 PM
Post #1





Group: Members
Posts: 2,350
Joined: 30-July 06
Member No.: 10,575



How do you symlink directories? When I try to cd into a directory I've symlinked, it says "too many layers of symbolic links."

Thanks.
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
Capn_Fish
post Aug 15 2007, 07:48 AM
Post #2





Group: Members
Posts: 2,350
Joined: 30-July 06
Member No.: 10,575



CODE
/stuff#mkdir test
/stuff#ln -s test /test
/stuff#cd /test
-bash: cd: /test: Too many levels of symbolic links
/stuff#


What am I doing wrong, then? There's nothing in the folder.
Go to the top of the page
 
+Quote Post
Drake01
post Aug 15 2007, 05:14 PM
Post #3





Group: Members
Posts: 226
Joined: 29-March 06
Member No.: 9,483



QUOTE(Capn_Fish @ Aug 15 2007, 10:48 AM)
CODE
/stuff#mkdir test
/stuff#ln -s test /test
/stuff#cd /test
-bash: cd: /test: Too many levels of symbolic links
/stuff#


What am I doing wrong, then? There's nothing in the folder.
*

Try using a full path. I believe ln uses relative paths, which has caused confusing problems for me before. With relative paths, you're linking /test to itself. ln -s /stuff/test /test should accomplish what it seems you're trying to do.
Go to the top of the page
 
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 19th May 2013 - 10:41 AM