- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: rm non-existent error
Operating System - HP-UX
1822040
Members
3549
Online
109640
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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-31-2007 05:06 AM
тАО01-31-2007 05:06 AM
I am trying to remove a file and receive non-existent message. See attachment for more detail. This file was left from a hang ftp session that was already terminated. HP-UX 11.00 has since been rebooted.
Any help is greatly appreciated.
Any help is greatly appreciated.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-31-2007 05:13 AM
тАО01-31-2007 05:13 AM
Solution
Hi Ben:
No doubt the file has unprintable characters in its name and you are not seeing what you think you are seesing.
There are several ways to handle this:
# ls -lb ftp*
...will show the filename with unprintable characters in octal \ddd notation.
# rm -i ftp*
...will allow you to respond "y" to the file(s) you want to remove.
# find . -type f -name "ftp*" -exec ls -ilb {} \;
...will show the file(s) inode number in the first column and expose the unprintable characters in the name.
Then, having found the inode number, you can remove the file thusly:
# find . -xdev -type f -inum -exec rm {} \;
...substitute the correct inode number for and *be sure* to include '-xdev' to that you don't cross mountpoints. Inode numbers are only unique within a filesystem!
Regards!
...JRF...
No doubt the file has unprintable characters in its name and you are not seeing what you think you are seesing.
There are several ways to handle this:
# ls -lb ftp*
...will show the filename with unprintable characters in octal \ddd notation.
# rm -i ftp*
...will allow you to respond "y" to the file(s) you want to remove.
# find . -type f -name "ftp*" -exec ls -ilb {} \;
...will show the file(s) inode number in the first column and expose the unprintable characters in the name.
Then, having found the inode number, you can remove the file thusly:
# find . -xdev -type f -inum
...substitute the correct inode number for
Regards!
...JRF...
- Tags:
- unprintable chars
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-31-2007 05:24 AM
тАО01-31-2007 05:24 AM
Re: rm non-existent error
Thanks James. ls -lb ftp* did show the file name with \ in it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-31-2007 05:26 AM
тАО01-31-2007 05:26 AM
Re: rm non-existent error
James' answer solved my problem.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP