| |||
| using cp command to make soft link problem " ln -s linux-2.24 linux " has the effect which makes a soft link " linux" point to "linux-2.24" directory(linux->linux-2.24) ,since cp command has -s (make symbolic links instead of copying) option, I do "cp -s linux-2.24 linux " ,but didn't have the same effection . I want to know whether cp have some tips can do this .Many Thanks. |
| |||
| Re: using cp command to make soft link problem In <6c59b6ce-0c84-458d-8b0b-ca8afcb9184b@w7g2000hsa.googlegroups.com>, on Sun, 6 Jul 2008 06:37:19 -0700 (PDT), enjoyfate******.com, enjoyfate******.com wrote: > " ln -s linux-2.24 linux " has the effect which makes a soft > link > " linux" point to "linux-2.24" directory(linux->linux-2.24) ,since > cp > command has -s (make symbolic links instead of copying) option, I do > "cp -s linux-2.24 linux " ,but didn't have the same effection . I > want to know whether cp have some tips can do this .Many Thanks. $ touch original $ cp -s original link $ ll $ lrwxrwxrwx 1 user user 8 2008-07-06 10:57 link -> original $ -rw-r--r-- 1 user user 0 2008-07-06 10:57 original |
| |||
| Re: using cp command to make soft link problem On Sun, 6 Jul 2008, in the Usenet newsgroup alt.os.linux, in article <6c59b6ce-0c84-458d-8b0b-ca8afcb9184b@w7g2000hsa.googlegroups.com>, enjoyfate******.com wrote: NOTE: Posting from groups.google.com (or some web-forums) dramatically reduces the chance of your post being seen. Find a real news server. >" ln -s linux-2.24 linux " has the effect which makes a soft link >" linux" point to "linux-2.24" directory(linux->linux-2.24) ,since cp >command has -s (make symbolic links instead of copying) option, I do >"cp -s linux-2.24 linux " ,but didn't have the same effection . I >want to know whether cp have some tips can do this .Many Thanks. Yeah, I don't get any consistency using 'cp -s'. "cp -s file1 file2" If file1 and file2 are in the same directory, I get a soft link. If file1 and file2 are in DIFFERENT directories, but on the same partition, I get a 'hard link'. If file1 and file2 are on DIFFERENT partitions, I get a soft link. I can't recall if cp -s is POSIX or not (I'm pretty sure it is), but I don't think many use it, just to avoid this kind of confusion. What are you trying to do? Old guy |
![]() |
| Bookmarks |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| acomplia belgique soft generiqueAcheter acomplia en ligne sur internetacomplia canada soft sans prescriptionacomplia canada soft sans prescriptionacheter acomplia canada bon marche | dknhgdlf@yahoo.com.au | Pocket PC General | 0 | 05-21-2008 04:00 PM |
| acheter zyban us usa a vendreacheter achat zyban concernées par cetteacheter zyban aucune prescriptionacheter zyban canada soft generiqueacheter zyban suisse soft generique | kmwkawrt@yahoo.com | Microsoft OneNote | 0 | 05-16-2008 06:00 PM |
| How to soft (!) exit a program from command line? Simulating "close" button click | Michael Walsh | Windows XP | 1 | 04-15-2008 01:24 PM |
| How to follow link from command line | Ishmael | Windows XP | 7 | 01-01-2008 04:53 PM |
| The link /vmlinuz is a damaged link and The link /initrd.img is a damaged link due to lack of free disk space... | Ant | Linux | 13 | 05-08-2007 04:00 PM |