tag:blogger.com,1999:blog-8712770457197348465.post8762535106569199942..comments2024-03-18T22:23:44.692-07:00Comments on Javarevisited: How to Create, Update and Remove Soft link in Linux and UNIX - Examplejavin paulhttp://www.blogger.com/profile/15028902221295732276noreply@blogger.comBlogger14125tag:blogger.com,1999:blog-8712770457197348465.post-41259726118538168172014-12-03T00:45:54.524-08:002014-12-03T00:45:54.524-08:00Hi Javin,
Thank you so much for nice article.How ...Hi Javin,<br /><br />Thank you so much for nice article.How to display hardlinks in unix.I created hardlink with command ln file2 hardlink for file2.But when I do ls -ltr it is showing hardlink as file so it is difficult to differentiate between hardlink and source fileAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-81690540738055047972014-07-31T23:12:19.456-07:002014-07-31T23:12:19.456-07:00Hi Javin,
I am very much impressed with this web...Hi Javin, <br /><br />I am very much impressed with this website. I appreciate you for your effort.<br />I want to create a symbolic link in Java6 environment. Could you please give me an idea, how we can create Symbolic links in Java6 environment.<br /><br />Thanks in advance.<br /><br />I think Java7 having java.nio.File packages to support this. Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-66641281550799185602014-04-26T09:26:45.495-07:002014-04-26T09:26:45.495-07:00Hi Javin, this was a great tutorial. However, just...Hi Javin, this was a great tutorial. However, just had a small recommendation. Going forward, it would be great if you can describe what each of your options stand for while using the command. For example, while updating the symlinks using the command " ln -nsf 1.3 latest", it would be create if you would have just given a short description of what n,s,f stand for. Like n--> treat BHSnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-6382182889167373742012-11-27T08:40:35.006-08:002012-11-27T08:40:35.006-08:00Agree with above comments regarding soft/hardlink....Agree with above comments regarding soft/hardlink. When you delete source file with a hardlink, the file is still accessible from hardlink, that's why hardlink doesn't break. Hardlink and original filename are almost equivalent just like multiple points point to same memory in C.tang07059https://www.blogger.com/profile/12708620494358030253noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-21415699815114797682012-11-14T06:25:02.428-08:002012-11-14T06:25:02.428-08:00I guess you left out the most important thing rela...I guess you left out the most important thing related to the difference between sym links and hard links. Hard links have the same inode number, because they are different pointer to the same space occupied on the disk, while soft links have different inodesAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-84019988056332385822012-09-20T22:39:55.178-07:002012-09-20T22:39:55.178-07:00What is UNIX Command to find Soft link or hard lin...What is UNIX Command to find Soft link or hard link ? I want to find all soft link and broken links in my server, do you know Which Linux or UNIX command I can use to find all symbolic links ? It's ok if they find both Soft link and hard link , I am more interested on broken links i.e. links which are there but files or directory to which they are pointing is deleted or removed.Victornoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-82040890019704096512012-08-13T09:12:04.690-07:002012-08-13T09:12:04.690-07:00One small typo:
To create a soft link called "...One small typo:<br />To create a soft link called "current" that points to a file or directory called "new_package", use this: ln -s new_package latest to remember this command always remember that name of soft link comes as last argument.<br /><br />Instead of using "current" in the example, you used "latest"Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-48704056422779616882012-06-15T02:43:52.078-07:002012-06-15T02:43:52.078-07:00for updating soft link in Unix or Linux
ln -nfs ...for updating soft link in Unix or Linux <br /><b> ln -nfs </b> is the way to go, forget about deleting old link and then recreating new link, just waste of time but that's what I was doing from long time.Jacknoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-19317754551077955052012-05-25T10:04:22.834-07:002012-05-25T10:04:22.834-07:00Ahhh! thanks! ln -nfs works so wonderfully!Ahhh! thanks! ln -nfs works so wonderfully!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-4456745317021936702012-01-29T21:13:55.863-08:002012-01-29T21:13:55.863-08:00The best tip I got on updating symbolic link in Un...The best tip I got on updating symbolic link in Unix is using "ln -nsf" to forcefully update the soft link without deleting it.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-19982294715390997072011-12-18T20:56:41.185-08:002011-12-18T20:56:41.185-08:00Thanks for the nice explanation.
It really helped ...Thanks for the nice explanation.<br />It really helped meAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-46935860373576741232011-11-09T02:54:47.241-08:002011-11-09T02:54:47.241-08:00Hi Can these command related to soft link and hard...Hi Can these command related to soft link and hard link is also applicable for other flavor of unix like Solaris and AIX ? By the way I really like your tips on updating Soft link in one step. earlier I had to delete and recreate the link for just rename. ThanksAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-20683277868112329092011-05-14T20:12:14.900-07:002011-05-14T20:12:14.900-07:00@arapidhs, Thanks for your comment , good to hear ...@arapidhs, Thanks for your comment , good to hear that you like the tips.Javin @ FIX Protocol and Electroinc Tradinghttp://javarevisited.blogspot.com/2011/02/fix-protocol-session-or-admin-messages.htmlnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-75664196495656919302011-05-14T20:11:26.566-07:002011-05-14T20:11:26.566-07:00@Helen Neely , Thanks you like this UNIX soft link...@Helen Neely , Thanks you like this UNIX soft link tutorial. I agree these are most of these tips already known by users but this post is meant for starters and new comers and for those who already knows UNIX soft link it could be a refresher :)Javin @ Electroinc Trading and FIX Protocolhttp://javarevisited.blogspot.com/2011/02/fix-protocol-session-or-admin-messages.htmlnoreply@blogger.com