- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Remove a 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
Forums
Discussions
Discussions
Discussions
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
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-22-2002 01:54 AM
03-22-2002 01:54 AM
Remove a link
I'm trying to remove a link which has lost its link.
Here it is
~~~~~~~~~~~~~~~~~~~
lrwxrwxrwx 1 root root 20 Feb 24 03:55 download
~~~~~~~~~~~~~~~~~~~~~~
Notice that the link is missing and the link cannot be removed.
Please enlighten on how to remove this link.
Thanx in advance
Ramesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2002 01:59 AM
03-22-2002 01:59 AM
Re: Remove a link
have you tried the force option
rm -f download
logged in as root of course
cheers
john.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2002 02:02 AM
03-22-2002 02:02 AM
Re: Remove a link
Regards,
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2002 02:02 AM
03-22-2002 02:02 AM
Re: Remove a link
what error you are getting ?
Try creating a bogus file the link was used to have.
And then rm the link as root.
Maybe use unlink
C.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2002 02:04 AM
03-22-2002 02:04 AM
Re: Remove a link
you can just delete the link which "rm".
If it points to a directory, just must NOT add the / !!
# rm download
should work fine.
You may also try the "unlink" command:
# unlink download
Heiner
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2002 02:04 AM
03-22-2002 02:04 AM
Re: Remove a link
also you cannot remove it if its being accessed.
fuser -c /download
Then do
fuser -k
cheers
John.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2002 02:06 AM
03-22-2002 02:06 AM
Re: Remove a link
Do you get an error when you try to remove the link? If so can you please let us know what the error is?
It should be possible to remove it as you have full permissions, but not if the file is in use by any process.
HTH,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2002 06:27 PM
03-26-2002 06:27 PM
Re: Remove a link
Tried the suggestions.But didn't work.
A reboot of the server took care of the problem. Quite drastic though.
Thanx
Ramesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2002 06:31 PM
03-26-2002 06:31 PM
Re: Remove a link
whilst on the topic of links
I've found a command that will search for all dead links on a system
find
Regards
Steve