- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Soft link removal.HPUX 11.11
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
тАО05-08-2007 01:16 AM
тАО05-08-2007 01:16 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2007 01:20 AM
тАО05-08-2007 01:20 AM
Re: Soft link removal.HPUX 11.11
Which are the file permissions ?
use ll to determine that ..
Have you tried to use only rm .
Rgds,
Marco
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2007 01:51 AM
тАО05-08-2007 01:51 AM
Re: Soft link removal.HPUX 11.11
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2007 02:00 AM
тАО05-08-2007 02:00 AM
Re: Soft link removal.HPUX 11.11
DANGEROUS !!!
rm -rf will work.
It will however wipe out all the data that is soft linked.
Please do an ll on the softlink, post it and someone will try and help.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2007 02:01 AM
тАО05-08-2007 02:01 AM
Re: Soft link removal.HPUX 11.11
Please post the output ...
rgds,
Marco
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2007 02:14 AM
тАО05-08-2007 02:14 AM
Re: Soft link removal.HPUX 11.11
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2007 02:25 AM
тАО05-08-2007 02:25 AM
Re: Soft link removal.HPUX 11.11
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2007 03:12 AM
тАО05-08-2007 03:12 AM
Re: Soft link removal.HPUX 11.11
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2007 03:28 AM
тАО05-08-2007 03:28 AM
Re: Soft link removal.HPUX 11.11
adapt the names to your needs:
Creation of a sysmlink:
mkdir -p /tmp/a/b /tmp/c
ln -s /tmp/a/b /tmp/c
Check:
ls -l /tmp/c/b
lrwxrwxrwx 1 ef3nip00 nsd 8 May 8 17:27 /tmp/c/b -> /tmp/a/b
Removal:
rm /tmp/c/b
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2007 04:56 AM
тАО05-08-2007 04:56 AM
Re: Soft link removal.HPUX 11.11
I am trying to remove link to /adacs_data/lib/test.This link goes from Test dir /adacs_data/lib/test.
When I try rm /adacs_data/lib/test - rm: /adacs_data/lib/test directory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2007 01:01 PM
тАО05-08-2007 01:01 PM
Re: Soft link removal.HPUX 11.11
You need to say what shell you are using and do the following commands:
$ ll -i your-symlink
$ ll -Ldi your-symlink
$ ll -di your-link-target
>I am trying to remove link to /adacs_data/lib/test.
We need to know where the link is, not where it points.
>This link goes from Test dir /adacs_data/lib/test.
You said this is the target of the link?
>When I try rm /adacs_data/lib/test - rm: /adacs_data/lib/test directory
Please do:
$ ll -di /adacs_data/lib/test
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2007 01:14 AM
тАО05-09-2007 01:14 AM
Re: Soft link removal.HPUX 11.11
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2007 01:28 AM
тАО05-09-2007 01:28 AM
Re: Soft link removal.HPUX 11.11
it is clear that the data you gave to the ls command (whatever the name was) is NOT a link but definitly a directory:
- no simple rm will work
- a 'rm -rf' will destroy the data
Concerning your primary intent, I would look into /opt/adacs/... - this place may be the place, where you created a link:
find /opt/adacs -type l
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2007 02:48 AM
тАО05-09-2007 02:48 AM
Re: Soft link removal.HPUX 11.11
/opt/adacs/views/TEST
/opt/adacs/views/TEST_views/view
/opt/adacs/views/test
/opt/adacs/bin.17Jan07
/opt/adacs/data/merged
/opt/adacs/lib/test
/opt/adacs/setup.sav
/opt/adacs/setup.17Jan07
/opt/adacs//views.18Jan07
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2007 02:53 AM
тАО05-09-2007 02:53 AM
Re: Soft link removal.HPUX 11.11
having several links named test (different spelling however), check where they point to:
ls -l /opt/adacs/views/test
These pointing to your real directory data are your candidates. You have to decide, whether
- a simple remove
- remove, copying the 'real data' back
- leave as it is
is the action.
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2007 03:07 AM
тАО05-09-2007 03:07 AM
Re: Soft link removal.HPUX 11.11
ls -l /opt/adacs/test
/opt/adacs/test -> /adacs_data/test
ls -l /opt/adacs/lib/test
/opt/adacs/lib/test -> /adacs_data/lib/test
I just want simply to remove the link without deleting the data
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2007 03:13 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2007 07:21 AM
тАО05-09-2007 07:21 AM
Re: Soft link removal.HPUX 11.11
I just wanted to thanks everybody that contributed!