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

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> 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
desertrat
post Aug 14 2007, 08:30 PM
Post #2





Group: Members
Posts: 742
Joined: 15-October 05
From: Gulag, Siberia
Member No.: 8,322



QUOTE(Capn_Fish @ Aug 15 2007, 03:10 AM)
How do you symlink directories? When I try to cd into a directory I've symlinked, it says "too many layers of symbolic links."

Same as for a file. You've probably got some recursive links somewhere.
Go to the top of the page
 
+Quote Post
Capn_Fish
post Aug 15 2007, 07:48 AM
Post #3





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
InSearchOf
post Aug 15 2007, 11:29 AM
Post #4





Group: Admin
Posts: 1,210
Joined: 20-January 06
From: York, Pennsylvania
Member No.: 8,961



I fixed your post

Late
Go to the top of the page
 
+Quote Post
Drake01
post Aug 15 2007, 05:14 PM
Post #5





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
Capn_Fish
post Aug 15 2007, 06:40 PM
Post #6





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



That solved it. Thanks everyone!
Go to the top of the page
 
+Quote Post

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: 23rd October 2014 - 12:36 AM