- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- about links
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-28-2009 03:31 AM
тАО03-28-2009 03:31 AM
about links
When i create hardlink & softlink what will effect on link id which shows in ls -l option.And what is difference between softlink & hardlink.Please help me out
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-28-2009 04:04 AM
тАО03-28-2009 04:04 AM
Re: about links
If you are creating hard link it will be the same copy of the original file.Whatever may be the changes you are making in any of these file make change to the other file also.It can't cross file systems.The inode number of both file are same.
Soft link is just like a shortcut to the original file.
For Hardlink
#ln
For Soft link
#ln -s
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-28-2009 04:09 AM
тАО03-28-2009 04:09 AM
Re: about links
After creating hard link,the no:of links will be increase.(ie,the second coloumn of ls -l)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-28-2009 04:15 AM
тАО03-28-2009 04:15 AM
Re: about links
What will effect in link id (i.e ls -l)after creating soft link.If any links providing difference between softlink and hardlink.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-28-2009 04:42 AM
тАО03-28-2009 04:42 AM
Re: about links
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-29-2009 01:45 AM
тАО03-29-2009 01:45 AM
Re: about links
1. hardlink is using when you want the link to be in the same file system. In this case the inode for both link and the file is the same. If you want to move the shared link to another location or you want to move the original file, it does not affect either of them.
u can use ln command to create hard link
this can not be used on directories. and can be used only in the same fS and not outside file systems
Soft links:- this one is mainly using when u want a temporary link. indod is different unlike hard link this can be both for file and directories.
If the source file gets deleted the link will be removed at next reboot
This can extend across file systems
u can use ln -s command to create a soft link
thanks and regards
Sajjad Sahir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-29-2009 01:45 AM
тАО03-29-2009 01:45 AM
Re: about links
1. hardlink is using when you want the link to be in the same file system. In this case the inode for both link and the file is the same. If you want to move the shared link to another location or you want to move the original file, it does not affect either of them.
u can use ln command to create hard link
this can not be used on directories. and can be used only in the same fS and not outside file systems
Soft links:- this one is mainly using when u want a temporary link. indod is different unlike hard link this can be both for file and directories.
If the source file gets deleted the link will be removed at next reboot
This can extend across file systems
u can use ln -s command to create a soft link
thanks and regards
Sajjad Sahir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-29-2009 01:45 AM
тАО03-29-2009 01:45 AM
Re: about links
1. hardlink is using when you want the link to be in the same file system. In this case the inode for both link and the file is the same. If you want to move the shared link to another location or you want to move the original file, it does not affect either of them.
u can use ln command to create hard link
this can not be used on directories. and can be used only in the same fS and not outside file systems
2.Soft links:- this one is mainly using when u want a temporary link. indod is different unlike hard link this can be both for file and directories.
If the source file gets deleted the link will be removed at next reboot
This can extend across file systems
u can use ln -s command to create a soft link
thanks and regards
Sajjad Sahir