Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

ln -s -> "file exists" ?!?

To free some space on startup partition and to ease backup I moved /user/me/library/mail (folder) to another partition and wanted to symlink to it:

ln -s /otherpartition/Ω backup/mail /startupdisk/user/me/library/

Got error message "file exists". Checked it with ls -a. File did not exist! (I moved the original folder to the desktop). Tried sudo. No way.

The Ω is to order the folder at the very end.

Any hints?

pb 1,33, Mac OS X (10.4.7)

Posted on Jul 2, 2006 11:26 AM

Reply
7 replies

Jul 2, 2006 1:12 PM in response to Tom Gewecke

You also need to include the appropriate starting point to the other partition; namely,

/Volumes/otherpartition/<rest of path>

The easiest way to get paths correctly is to select the destination folder in the Finder and click & drag it into the Terminal window. The OS will properly escape and spaces or oddball characters.

Additionally, the source path is malformed. It should be:

/Users/<username>/Library/

You don't need the boot drive's name, / suffices, and path's are case-sensitive.

Jul 13, 2006 3:16 PM in response to Sven Schänzler1

my experience with the command line is limited at best, but i'm trying to create a sym link (ln -s) to create a folder, either named the same or named different. and for the life of me i can't get it to work, it either tells me:

"ln: user/directory/: No such file or directory"

or

it puts a dead alias with the name in the directory, but when you try to open it it asks me to delete fix or cancel.

i have done this before, but can't remember how i did it, i'm missing some / at the beginning or end or both i think. anybody have any thoughts?

thanks

ln -s -> "file exists" ?!?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.