LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-12-2005, 09:14 PM   #1
hongxing
Member
 
Registered: Oct 2005
Posts: 73

Rep: Reputation: 15
how to copy soft link


when I copy use cp, it says cannot copy soft link file.
how to copy it ?
 
Old 10-12-2005, 09:29 PM   #2
mherring02
Member
 
Registered: May 2005
Location: Pasadena, CA
Distribution: Ubuntu, Fedora
Posts: 50

Rep: Reputation: 15
I'm guessing it is an issue of permissions. Check to see that you have write access to the directory where you are trying to put the link.

(I just tried copying a link where I have permissions and it works fine)
 
Old 10-12-2005, 09:43 PM   #3
hongxing
Member
 
Registered: Oct 2005
Posts: 73

Original Poster
Rep: Reputation: 15
I remember their is an option of cp command, but not sure which one
 
Old 10-12-2005, 09:54 PM   #4
mherring02
Member
 
Registered: May 2005
Location: Pasadena, CA
Distribution: Ubuntu, Fedora
Posts: 50

Rep: Reputation: 15
Your reply does not seem to relate to mine....

try "man cp"---but I have never seen an option for copying links. Again it worked for me by just using: "cp <linkname> <directory>"
 
Old 02-24-2010, 08:14 AM   #5
mayankmehta83
LQ Newbie
 
Registered: Dec 2009
Posts: 7

Rep: Reputation: 0
use "-d" switch with cp to copy links

% cp --help | grep link;
-d, --no-dereference never follow symbolic links
...
 
Old 02-24-2010, 08:14 AM   #6
mayankmehta83
LQ Newbie
 
Registered: Dec 2009
Posts: 7

Rep: Reputation: 0
% cp --help | grep link
-d, --no-dereference never follow symbolic links
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
removing a soft link quietguy47 Linux - General 3 12-31-2011 10:34 PM
Soft Link and Hard Link Moataz Red Hat 1 04-25-2005 07:30 AM
copy both soft link and its linked file okeyla Programming 3 02-14-2005 12:30 AM
Which do you prefer. Hard / soft copy text? unholy General 7 04-14-2004 06:37 PM
Soft link help Pyroknight Linux - Newbie 1 02-06-2003 07:21 PM


All times are GMT -5. The time now is 06:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration