Go Back   Technology Questions > Software Questions > Operating System Questions > Linux

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 07-25-2008, 06:19 AM
enjoyfate@gmail.com
Tablet PC Guest
 
Posts: n/a
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 07-25-2008, 06:19 AM
Xploder HD Movie Player for PS3. Manage, convert and transfer media files between the PC and PS3.
  #2 (permalink)  
Old 07-25-2008, 06:19 AM
Steve Ackman
Tablet PC Guest
 
Posts: n/a
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3 (permalink)  
Old 07-25-2008, 06:19 AM
Moe Trin
Tablet PC Guest
 
Posts: n/a
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT -8. The time now is 01:34 PM.


2003 - 2008 All Rights Reserved. Technology Questions

SEO by vBSEO 3.1.0