- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to Unlink a file in Hp-UX UNIX
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
тАО04-21-2005 01:23 AM
тАО04-21-2005 01:23 AM
The problem is that there are several links in this directory which points to some other filesystems, how do i unlink these links before deleting the contents, so I can restore the filesystem.
Please advise how to unlink it, so when I blow the contents it won't actually blow other files...
what command is good to unlink the files without deleting their links files
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-21-2005 01:26 AM
тАО04-21-2005 01:26 AM
SolutionThey can be deleted with the rm command.
If you need to re-establish after the work, then do an ll command on them so its easier to put them back together.
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
тАО04-21-2005 01:27 AM
тАО04-21-2005 01:27 AM
Re: How to Unlink a file in Hp-UX UNIX
live free or die
harry d brown jr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-21-2005 01:30 AM
тАО04-21-2005 01:30 AM
Re: How to Unlink a file in Hp-UX UNIX
Example
cd ~gwild
ln -s /tmp mytmp
ls -l mytmp
lrwxr-xr-x 1 root sys 4 Apr 21 07:29 mytmp -> /tmp
rm mytmp
ls -ld /tmp
drwxrwxrwt 21 bin bin 8192 Apr 21 07:30 /tmp
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-21-2005 01:45 AM
тАО04-21-2005 01:45 AM
Re: How to Unlink a file in Hp-UX UNIX
These could be two ways to achieve what you wish to do:
1. You can simply remove the link files (using rm), just have the names of these files backed up so that if you plan to create them again, you don't have any problems. [ ls -l|grep ^l ]
2. unmount the filesystems which are linked to the files you are mentioning. This would definitely ensure that you do not alter any data.
Rgds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-21-2005 12:38 PM
тАО04-21-2005 12:38 PM
Re: How to Unlink a file in Hp-UX UNIX
I have used unlink command to delete the links without acutally deleting the target files, which were linked.
Cheers