- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- System Administration
- >
- Cannot Delete File
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Latin America
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- 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
- Email to a Friend
- Report Inappropriate Content
08-07-2005 11:25 AM
08-07-2005 11:25 AM
Cannot Delete File
I am having a file which when I do a ll appears in the directory listing, when I try to delete it system gives error message
"No such file or directory"
Permission on the file is rw-r-r and I cannot change permission as well error message "Cant Access".
What could be the issue ?
Thanks,
Amit.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-07-2005 12:43 PM
08-07-2005 12:43 PM
Re: Cannot Delete File
i think you filename may contains some control character, try to use "rm -i *filename*" to remove the file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-07-2005 01:09 PM
08-07-2005 01:09 PM
Re: Cannot Delete File
Rgrds,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-07-2005 01:53 PM
08-07-2005 01:53 PM
Re: Cannot Delete File
# echo * | cat -v
Look for any control characters displayed
# rm -rf *application*
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-07-2005 02:23 PM
08-07-2005 02:23 PM
Re: Cannot Delete File
ll with -b option can also be used to display files with special characters. Once you find there are special characters in the file remove it using rm with -i option as you use wild characters in the arguments.
#ll -b
#rm -i *filename or filename*
(Put * depending upon the location of control character in the file)
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-07-2005 02:29 PM
08-07-2005 02:29 PM
Re: Cannot Delete File
As others say this is due to a special character incorporated in your file...
One more trick that I use is
rm (filename)
Where
Hit the escape key twice and that will auto complete the command and will automatically find the name with hidden/non ascii characters and complete the word.
cheers!!!
Vinod
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-07-2005 02:34 PM
08-07-2005 02:34 PM
Re: Cannot Delete File
1. #ll -i directoryname|awk '{print $1}'
Verify i-node number via find
2. #find $PWD -inum XXXXXXX -exec ll {} \;
If output match the directory name, then
3. #find $PWD -inum XXXXXXX -exec rm -rf {} \;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-09-2005 07:22 PM
08-09-2005 07:22 PM
Re: Cannot Delete File
ls > somefile
edit "somefile" to remove everything except the file you want to remove and insert an "rm " in front of the file name. Then save it.
sh somefile
I like to do it that way sometimes just to see how odd the filename really is.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-09-2005 07:23 PM
08-09-2005 07:23 PM
Re: Cannot Delete File
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-09-2005 07:45 PM
08-09-2005 07:45 PM
Re: Cannot Delete File
it depends on some control charecters
i have also many end-users and many times
they use turkish characters while creating
files although i warn them so when i want to
reduce FS about their home dir i face same
problems...the solution i prefer;
rm -i filename
And also i sometimes apply as Mark's solution
Good Luck,
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP