- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to remove a symbolic 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
тАО09-14-2001 01:11 AM
тАО09-14-2001 01:11 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-14-2001 01:18 AM
тАО09-14-2001 01:18 AM
Solutionrm linkname
without "-r" rm will not delete any dir.
Btw: you can never have a directory and a Symlink with the same name inside the same directory.
If you are in doubt, qualify a full pathname and rename the directory before you delete the link.
Volker
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-14-2001 01:23 AM
тАО09-14-2001 01:23 AM
Re: how to remove a symbolic link
Just execute #rm
The file pointed to by the link will not be affected.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-14-2001 01:23 AM
тАО09-14-2001 01:23 AM
Re: how to remove a symbolic link
Don't understand : you have a link to himself ?
I think that you can't create a link using the
name of an existing directory/file... If the
link is in the same directory than you directory
I think you have no printables characters in
on of the names. (use ls -lab to have all this
informations). In this case you can delete it
with rm -i to confirm.
When you delete a link to a directory using rm
you don't delete the directory...
HTH
Herv?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-19-2001 08:32 AM
тАО09-19-2001 08:32 AM
Re: how to remove a symbolic link
You can use the unlink command to remove a link and leave the file that was linked to. So if you have a file named link2file and it links to the file named filename, the following command will remove the link.
unlink link2file
This is usually in /usr/sbin/unlink so you may need to either su or use sudo to run the command. Hope this helps.
Jeff