![]() ![]() |
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. |
|
|
|
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. |
|
|
|
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. |
|
|
|
Aug 15 2007, 11:29 AM
Post
#4
|
|
![]() Group: Admin Posts: 1,208 Joined: 20-January 06 From: York, Pennsylvania Member No.: 8,961 |
I fixed your post
Late |
|
|
|
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. |
|
|
|
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!
|
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 25th May 2013 - 02:27 PM |