- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Cannot Delete File
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
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
тАО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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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,