LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 10-10-2011, 10:41 AM   #1
hexapla
LQ Newbie
 
Registered: Oct 2011
Posts: 3

Rep: Reputation: Disabled
Hardlinks


Hy guys,

another one...

There is a filesystem mounted on /usr containing new version of binaries. How do I create a hard link "/bin/perl" for file "/usr/bin/perl"?

Thanks,
Andrei
 
Old 10-10-2011, 10:45 AM   #2
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
Quote:
Originally Posted by hexapla View Post
There is a filesystem mounted on /usr containing new version of binaries. How do I create a hard link "/bin/perl" for file "/usr/bin/perl"?
Hard links can only be between files on the same filesystem. You can make a symlink like this:

Code:
ln -s /usr/bin/perl /bin/perl
 
  


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
[SOLVED] How to change hardlinks to softlinks? phi Linux - General 11 03-27-2012 11:28 PM
Rsync not copying hardlinks as hardlinks OralDeckard Linux - General 14 09-15-2011 01:48 PM
softlinks vs hardlinks irfanhab Linux - Newbie 4 02-06-2007 02:05 AM
Cd image with hardlinks kvtournh Linux - Software 2 08-27-2006 05:22 AM
Lotsa hardlinks - how do I find the others? humbletech99 Linux - General 6 11-27-2005 01:27 PM

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

All times are GMT -5. The time now is 05:44 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration