Matthew Winn wrote:
On Sun, 06 May 2007 14:46:22 +0200, "A.J.Mechelynck"
<[EMAIL PROTECTED]> wrote:

Michael Henry wrote:
I used to find this hard to remember until I realized that 'ln' and 'cp' are very similar.

The problem is, "cp -v file1 file2" outputs

        `file1' -> `file2'

("the data has been copied from file1 to file2") but "ln -sv file1 file2" 
outputs

        file2 -> file1

It makes more sense if you think of it this way:

mv x y    move file x to file y
cp x y    copy file x to file y
ln x y    link file x to file y

Agreed, this is what makes the parameter order intuitive and consistent to me. But I can see confusion creeping in when the '-v' flag of the 'ln' command reverses the order of the filenames, as shown in Tony's example above. Fortunately, I almost never use '-v' so it can't confuse me :-)

Michael Henry



Reply via email to