Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-10-2011, 10:41 AM   #1
LQ Newbie
Registered: Oct 2011
Posts: 3

Rep: Reputation: Disabled

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"?

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

Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
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:

ln -s /usr/bin/perl /bin/perl


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

All times are GMT -5. The time now is 05:24 PM.

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