- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- soft link
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
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
тАО06-02-2007 08:08 AM
тАО06-02-2007 08:08 AM
Many people suggest use of soft links as a work around for saving disk space.
I want to know what are the shortcomings or risk of soft links or is it covered under best practices ?
Should we discourage the use of soft links ?
Thanks,
Shiv
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2007 08:34 AM
тАО06-02-2007 08:34 AM
Re: soft link
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2007 10:21 AM
тАО06-02-2007 10:21 AM
SolutionSoft links (or "symbolic links" as they are known) have great value. Unlike hard links, soft links can point from one file system to another. Soft links store the linkage information within their inode and are thus efficient structures.
Symbolic links can point to files, directories or even other symbolic links, Circular references can be detected since the kernel will limit the number of paths it traverses.
Symbolic links are paricularly useful when creating and using software that needs to actually point to different versions or to different locations.
For example, whether you have a Perl installation in '/usr' or in '/opt' doesn't matter to your Perl script if you create a symbolic link (e.g. '/usr/bin/perl' that points to the real binary location. That is, the 'shebang' (interpreter line) in you script can always remain "#!/usr/bin/perl".
Some of the standard system utilities can be made sensitive or insensitve to symbolic links. The '-follow' option of 'find' is one such example. The '-s' option of 'fbackup' is another example. The '-h' option of 'cpio' is yet another case. See the manpages for the aforementioned commands for the details of how the various options treat symbolic links.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2007 10:54 AM
тАО06-02-2007 10:54 AM
Re: soft link
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2007 11:21 AM
тАО06-02-2007 11:21 AM
Re: soft link
You can use "ll -L" to see if the link is valid.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2007 02:08 PM
тАО06-02-2007 02:08 PM
Re: soft link
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-03-2007 12:34 AM
тАО06-03-2007 12:34 AM
Re: soft link
The source and target for softlinks can be on seperate file systems, source does not
have to exist, it can be used on NFS env, etc. When a user removes a symbolic link,
the file to which it was pointed remains unaffected. Softlinks need additional I/O
necessary to complete file access, additional storage space taken up by softlink
file's inode data, etc. Soft link is kind of a "shortcut" (in windows term).
Softlinks do not exhibit the same file permissions as the source. It does show a new
permission bit: the 'l' bit. If we delete the source file for the softlink, then we
lose the ability to access the linked data through the softlinked file.
Needs little bit attention for maintenance of symbolic links; if the target of a
symbolic link is removed, the data vanishes and all links to it become orphans. Also,
removing a symbolic link has no effect on its source file.
There vere some known vulnerabilities reg. tmp directories and man related to symlinks.
Regards,
Rasheed Tamton.