- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- One strange file can't be removed
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
01-16-2003 05:02 PM
01-16-2003 05:02 PM
One strange file can't be removed
will fail to remove this file, due to the
message file not exist. But it is autually
existing in /dev/rmt. Anyone has the experience
about how to remove the strange file? Thanks.
Note: I have tried
rm /dev/rmt/*
rm /dev/rmt/?0?
rm /dev/rmt/?0*
all of above are failed to remove.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2003 05:04 PM
01-16-2003 05:04 PM
Re: One strange file can't be removed
# cd /dev/rmt
# rm -i *
and wait for the file to show up, alternatively please show us the full file listing.
# ls -lsa /dev/rmt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2003 05:10 PM
01-16-2003 05:10 PM
Re: One strange file can't be removed
The first thing that you should do is an ls -b /dev/rmt. The -b option will display all the non-printable characters as octal so that you know what you are dealing with. From there, you can make an intelligent choice for a regular expression to feed the rm command BUT use it in conjunction with -i so that you must answer 'y' before the file is removed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2003 05:14 PM
01-16-2003 05:14 PM
Re: One strange file can't be removed
find /dev/rmt -name "*0mo*" -exec rm -i {} \;
DEFINITELY use the -i option anytime a wildcard is used with rm.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2003 05:19 PM
01-16-2003 05:19 PM
Re: One strange file can't be removed
As others have noted, take great care using star names and wild cards in conjunction with any commands that delete, in an environment that doesn't have a "recycle bin"...
Regards, --bmr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2003 05:22 PM
01-16-2003 05:22 PM
Re: One strange file can't be removed
Also, I hope you will post the solution you eventually employ to get rid of this pesky thing, I'm intrigued.
--bmr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2003 05:59 PM
01-16-2003 05:59 PM
Re: One strange file can't be removed
A work around. Create a directory and copy all the files that you dont' want to remove. Once it is done then do a 'rm -rf /dev/rmt/'.
Create a directory /dev/rmt. Run 'insf -e' command and it will create devices files for you.
-Sri