LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-25-2009, 08:19 AM   #1
frazerjoshua
LQ Newbie
 
Registered: Feb 2009
Posts: 1

Rep: Reputation: 0
Copy of Symbolic link


How do i copy a sym link from one location to another
 
Old 05-25-2009, 08:24 AM   #2
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Read the cp man page. There are options not to deference the symlinks when copying, if that's what you mean.

Note however that the symlink will be broken if it points to a relative path.
 
Old 05-25-2009, 08:25 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
I think just make a new link. (ln -s or cp -l)

A link is intended to behave as if it were the actual file, thus "cp <linkname> /new/place" means "copy the file that linkname points to.)
 
  


Reply



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
symbolic link not allowed or link target not accessible paullaubscher Linux - Newbie 4 03-10-2010 06:47 AM
How to create symbolic link to html file and avoid page link problem? haxpor Linux - General 2 01-29-2008 07:40 AM
How to copy Symbolic link from linux to Windows Mini Singh Linux - General 13 05-15-2007 05:19 PM
Copy Symbolic Link subaruwrx Linux - Newbie 1 11-01-2004 04:45 AM
Copy symbolic Link? mikeshn Linux - General 1 10-11-2003 06:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:10 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
Open Source Consulting | Domain Registration