Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Hint is backwards ...' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Hint is backwards ...
Authored by: dhrakar on Aug 23, '03 12:42:29AM
Unfortunately, this tip is backwards. When creating a symbolic link, the syntax is (from the man page):
ln [-fhns] source_file [target_file]
Thus, the tip example should have been:
ln -s /path/to/new/trash ~/.Trash

[ Reply to This | # ]
Hint is backwards ...
Authored by: bkazez on Aug 23, '03 10:58:31AM

The command in the hint is actually correct. The man page is a little misleading in the names they give the arguments. By source_file they mean the original file (see DESCRIPTION, which is immediately below SYNOPSIS). Since ~/.Trash is the original file, it should come first in the argument list.

If you're still doubtful, try the command out yourself.

[ Reply to This | # ]
Hint is backwards ...
Authored by: Frederico on Aug 23, '03 02:30:04PM

I agree with the first reply; the original syntax is backwards.

For the second reply, indeed, try the command yourself.

it has always been:

link (symbolically) [to this real file/folder] [from this symbolic location/name]

Thus, e.g.:

ln -s /Volumes/OtherDisk/OtherDirectory/TargetDirectory /Volumes/OriginalDisk/OriginalDirectory/NameOfActualSymbolicLinkThatUsuallyMatchesTargetDirectory

[ Reply to This | # ]
Hint is backwards ...
Authored by: dhrakar on Aug 23, '03 03:20:35PM
Having used the ln command many times in the past, I'm still doubtful ;-) For the purposes of ln, source refers to the original, existing file or directory and target refers to the destination. That is, the intent is to use target as a substitute for source. Thus, you could look at it like
ln -s file-i-want-to-get-to local-file-substitute
So, in your case, you want to get to the 'real' trash location when you go to ~/.Trash so ./Trash becomes the target and not the source. Yes, it can be confusing :-/

[ Reply to This | # ]
Hint is backwards ...
Authored by: srowen on Aug 23, '03 04:14:31PM

No, the example in the hint is in fact backwards.

You're right about the syntax of ln, but "~/.Trash" is *not* the real directory being linked to. The point is that the trash is being moved to something like "/MyTrash", and "~/.Trash" is being changed to a symbolic link. "/MyTrash" is the source file, and "~/.Trash" is the target, so the arguments in the tip should be reversed.

[ Reply to This | # ]
Authored by: bkazez on Aug 23, '03 08:59:23PM

It appears I submitted my hint to hastily! First of all, those of you who said the order was wrong were correct. Quoting from "Sam's Teach Yourself UNIX":

Issue the ln command as ln -s .

And I discovered it takes two more steps to complete the location change.

So, to change the location of your trash, first type these two commands at the Terminal:

ln -s /path/to/new/trash ~/.Trash
mkdir /path/to/new/trash

Then, choose Force Quit from the Apple menu and relaunch the Finder.

Your Trash should now be successfully redirected.


[ Reply to This | # ]